summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-04-06 02:03:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:00:19 -0500
commit09a6f728a3bd3cad5707e2e1b106c77281555618 (patch)
treefa6956c66b681c6a308a90212ca9ddce1f8acb65 /source4/smb_server
parent825579c36e2ea2dbadd72f93e596fbb95bac88d5 (diff)
downloadsamba-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')
-rw-r--r--source4/smb_server/smb/request.c5
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);
}