diff options
author | Jeremy Allison <jra@samba.org> | 2001-06-09 01:38:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-06-09 01:38:54 +0000 |
commit | f63ee18c684af33342de2c5757f9fdf0b7d84997 (patch) | |
tree | 0115bdef20e84af196e58bfa8fa5ff6795641087 /source3/smbd/process.c | |
parent | c7b67c26e2e6d0ba3e881a729bf91e8ba1d9bde7 (diff) | |
download | samba-f63ee18c684af33342de2c5757f9fdf0b7d84997.tar.gz samba-f63ee18c684af33342de2c5757f9fdf0b7d84997.tar.xz samba-f63ee18c684af33342de2c5757f9fdf0b7d84997.zip |
*Wonderful* patch from Andrew Bartlett that will help ensure tdb's are
cleaned on clients abending connections. Thanks Andrew !
Jeremy.
(This used to be commit 1b3977c5367a0b713b194f369abd9872ae01ac2a)
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r-- | source3/smbd/process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 1f575e2a462..f757467680c 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -822,7 +822,7 @@ void process_smb(char *inbuf, char *outbuf) static unsigned char buf[5] = {0x83, 0, 0, 1, 0x81}; DEBUG( 1, ( "Connection denied from %s\n", client_addr() ) ); - send_smb(smbd_server_fd(),(char *)buf); + (void)send_smb(smbd_server_fd(),(char *)buf); exit_server("connection denied"); } } @@ -860,7 +860,8 @@ void process_smb(char *inbuf, char *outbuf) nread, smb_len(outbuf))); } else - send_smb(smbd_server_fd(),outbuf); + if (!send_smb(smbd_server_fd(),outbuf)) + exit_server("process_smb: send_smb failed.\n"); } trans_num++; } |