From 09a6f728a3bd3cad5707e2e1b106c77281555618 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Apr 2006 02:03:19 +0000 Subject: r14937: fix a crash that can be caused by a notify triggering during a share disconnect (This used to be commit 85d70f1c150b6c8370deeb188dbf9e87c8b8d7ac) --- source4/smb_server/smb/request.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4') 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); } -- cgit