svn commit: samba r14937 - in branches/SAMBA_4_0/source/smb_server/smb: .

tridge at samba.org tridge at samba.org
Thu Apr 6 02:03:20 GMT 2006


Author: tridge
Date: 2006-04-06 02:03:19 +0000 (Thu, 06 Apr 2006)
New Revision: 14937

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14937

Log:

fix a crash that can be caused by a notify triggering during a share
disconnect

Modified:
   branches/SAMBA_4_0/source/smb_server/smb/request.c


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb/request.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb/request.c	2006-04-06 02:02:41 UTC (rev 14936)
+++ branches/SAMBA_4_0/source/smb_server/smb/request.c	2006-04-06 02:03:19 UTC (rev 14937)
@@ -278,6 +278,11 @@
 	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);
 	}



More information about the samba-cvs mailing list