diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-04-06 02:03:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:19 -0500 |
commit | 09a6f728a3bd3cad5707e2e1b106c77281555618 (patch) | |
tree | fa6956c66b681c6a308a90212ca9ddce1f8acb65 /source4/smb_server/smb | |
parent | 825579c36e2ea2dbadd72f93e596fbb95bac88d5 (diff) | |
download | samba-09a6f728a3bd3cad5707e2e1b106c77281555618.tar.gz samba-09a6f728a3bd3cad5707e2e1b106c77281555618.tar.bz2 samba-09a6f728a3bd3cad5707e2e1b106c77281555618.zip |
r14937: fix a crash that can be caused by a notify triggering during a share
disconnect
(This used to be commit 85d70f1c150b6c8370deeb188dbf9e87c8b8d7ac)
Diffstat (limited to 'source4/smb_server/smb')
-rw-r--r-- | source4/smb_server/smb/request.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smb_server/smb/request.c b/source4/smb_server/smb/request.c index e858b2b787..f266ab587b 100644 --- a/source4/smb_server/smb/request.c +++ b/source4/smb_server/smb/request.c @@ -278,6 +278,11 @@ void smbsrv_send_reply_nosign(struct smbsrv_request *req) DATA_BLOB blob; NTSTATUS status; + if (req->smb_conn->connection->event.fde == NULL) { + /* we are in the process of shutting down this connection */ + return; + } + if (req->out.size > NBT_HDR_SIZE) { _smb_setlen(req->out.buffer, req->out.size - NBT_HDR_SIZE); } |