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/nttrans.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/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index b67815ff694..d58bb106af8 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -96,7 +96,8 @@ static int send_nt_replies(char *inbuf, char *outbuf, int bufsize, uint32 nt_err */ if(params_to_send == 0 && data_to_send == 0) { - send_smb(smbd_server_fd(),outbuf); + if (!send_smb(smbd_server_fd(),outbuf)) + exit_server("send_nt_replies: send_smb failed.\n"); return 0; } @@ -225,7 +226,8 @@ static int send_nt_replies(char *inbuf, char *outbuf, int bufsize, uint32 nt_err params_to_send, data_to_send, paramsize, datasize)); /* Send the packet */ - send_smb(smbd_server_fd(),outbuf); + if (!send_smb(smbd_server_fd(),outbuf)) + exit_server("send_nt_replies: send_smb failed.\n"); pp += params_sent_thistime; pd += data_sent_thistime; @@ -1780,7 +1782,8 @@ due to being in oplock break state.\n" )); /* We need to send an interim response then receive the rest of the parameter/data bytes */ outsize = set_message(outbuf,0,0,True); - send_smb(smbd_server_fd(),outbuf); + if (!send_smb(smbd_server_fd(),outbuf)) + exit_server("reply_nttrans: send_smb failed.\n"); while( num_data_sofar < total_data_count || num_params_sofar < total_parameter_count) { BOOL ret; |