summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-07-24 19:05:32 +0000
committerJeremy Allison <jra@samba.org>2003-07-24 19:05:32 +0000
commitceb68ee051e97afb1cb08e6f458e23e8f475504e (patch)
tree78124e5359f380fabef4cb337cc3d7f750513bc0 /source3/smbd/process.c
parent27db257734c35602fc34985a42335136166f20be (diff)
downloadsamba-ceb68ee051e97afb1cb08e6f458e23e8f475504e.tar.gz
samba-ceb68ee051e97afb1cb08e6f458e23e8f475504e.tar.bz2
samba-ceb68ee051e97afb1cb08e6f458e23e8f475504e.zip
Fix packet signing with asynchronous oplock breaks. Removed bad error message
due to w2k bug. I think this code is now working.... Need more testing of course but works on all the obvious cases I can think of. Jeremy. (This used to be commit a6e537f6611cc1357fffea0b69901fba7c9ad6ea)
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index fb85f38119..dce1c4bc03 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1087,16 +1087,21 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t
extern int keepalive;
if (smb_read_error == READ_EOF) {
- DEBUG(3,("end of file from client\n"));
+ DEBUG(3,("timeout_processing: End of file from client (client has disconnected).\n"));
return False;
}
if (smb_read_error == READ_ERROR) {
- DEBUG(3,("receive_smb error (%s) exiting\n",
+ DEBUG(3,("timeout_processing: receive_smb error (%s) Exiting\n",
strerror(errno)));
return False;
}
+ if (smb_read_error == READ_BAD_SIG) {
+ DEBUG(3,("timeout_processing: receive_smb error bad smb signature. Exiting\n"));
+ return False;
+ }
+
*last_timeout_processing_time = t = time(NULL);
if(last_keepalive_sent_time == 0)