diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-08-25 21:46:49 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-08-25 21:46:49 +0000 |
commit | 3e682867bbb13dae265cb9a8acea8b7cc87d82a6 (patch) | |
tree | 073518ce759724029f4a2366c74d87335700f104 | |
parent | 2e74473551f0fce0384eacd31bc1a53ff3967464 (diff) | |
download | samba-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
-rw-r--r-- | source/lib/util_sock.c | 4 |
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 |