summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-08-12 07:13:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:55 -0500
commit67f28b93ab01dc74bacf7e45b4030a83a2a7a3d9 (patch)
tree78fdecb140c708f78d70f4f70441defaaa756ac8 /source4
parentb918c6c5cdb490506c70c38056d32e5d406b07e7 (diff)
downloadsamba-67f28b93ab01dc74bacf7e45b4030a83a2a7a3d9.tar.gz
samba-67f28b93ab01dc74bacf7e45b4030a83a2a7a3d9.tar.bz2
samba-67f28b93ab01dc74bacf7e45b4030a83a2a7a3d9.zip
r1766: we do not have smb_read_error in samba4
(This used to be commit 1c3d52cea4dff57b14ee9bc197001fadb1d18abf)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/util_sock.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/lib/util_sock.c b/source4/lib/util_sock.c
index 54365116e8..f24d010f22 100644
--- a/source4/lib/util_sock.c
+++ b/source4/lib/util_sock.c
@@ -271,8 +271,6 @@ ssize_t read_data_until(int fd,char *buffer,size_t N,
ssize_t ret;
size_t total=0;
- smb_read_error = 0;
-
while (total < N) {
if (endtime != NULL) {
@@ -295,13 +293,11 @@ ssize_t read_data_until(int fd,char *buffer,size_t N,
if (ret == 0) {
DEBUG(10,("read_data: read of %d returned 0. Error = %s\n", (int)(N - total), strerror(errno) ));
- smb_read_error = READ_EOF;
return 0;
}
if (ret == -1) {
DEBUG(0,("read_data: read failure for %d. Error = %s\n", (int)(N - total), strerror(errno) ));
- smb_read_error = READ_ERROR;
return -1;
}
total += ret;