summaryrefslogtreecommitdiffstats
path: root/source/lib/util_sock.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-08-25 21:46:49 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-08-25 21:46:49 +0000
commit3e682867bbb13dae265cb9a8acea8b7cc87d82a6 (patch)
tree073518ce759724029f4a2366c74d87335700f104 /source/lib/util_sock.c
parent2e74473551f0fce0384eacd31bc1a53ff3967464 (diff)
downloadsamba-3e682867bbb13dae265cb9a8acea8b7cc87d82a6.tar.gz
samba-3e682867bbb13dae265cb9a8acea8b7cc87d82a6.tar.xz
samba-3e682867bbb13dae265cb9a8acea8b7cc87d82a6.zip
Patch from mimir to back out idra's attempted DOS mitigation patch.
(It broke port 139 name exchange) I've been thinking about this, and doing is properly is actually rather difficult - but I'll try and get somthing in there. (My worry is what smb_read_error should be set to, and how that interacts with the rest of samba). Andrew Bartlett
Diffstat (limited to 'source/lib/util_sock.c')
-rw-r--r--source/lib/util_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c
index 03c780f8bfc..56ef4a6ab1c 100644
--- a/source/lib/util_sock.c
+++ b/source/lib/util_sock.c
@@ -585,8 +585,8 @@ BOOL receive_smb(int fd,char *buffer, unsigned int timeout)
memset(buffer,'\0',smb_size + 100);
len = read_smb_length_return_keepalive(fd,buffer,timeout);
- if (len < 0 || len == 0) {
- DEBUG(10,("receive_smb: length < 0 or == 0!\n"));
+ if (len < 0) {
+ DEBUG(10,("receive_smb: length < 0!\n"));
/*
* Correct fix. smb_read_error may have already been