(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
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