mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
r14937: fix a crash that can be caused by a notify triggering during a share
disconnect (This used to be commit 85d70f1c150b6c8370deeb188dbf9e87c8b8d7ac)
This commit is contained in:
parent
825579c36e
commit
09a6f728a3
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user