svn commit: samba r6031 - in branches/SAMBA_4_0/source/smb_server: .
tridge at samba.org
tridge at samba.org
Thu Mar 24 04:53:20 GMT 2005
Author: tridge
Date: 2005-03-24 04:53:20 +0000 (Thu, 24 Mar 2005)
New Revision: 6031
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6031
Log:
don't try to send errors when the socket has been destroyed
Modified:
branches/SAMBA_4_0/source/smb_server/request.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/request.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/request.c 2005-03-24 04:45:41 UTC (rev 6030)
+++ branches/SAMBA_4_0/source/smb_server/request.c 2005-03-24 04:53:20 UTC (rev 6031)
@@ -368,6 +368,11 @@
*/
void req_reply_error(struct smbsrv_request *req, NTSTATUS status)
{
+ if (req->smb_conn->connection->event.fde == NULL) {
+ /* the socket has been destroyed - no point trying to send an error! */
+ talloc_free(req);
+ return;
+ }
req_setup_reply(req, 0, 0);
/* error returns never have any data */
More information about the samba-cvs
mailing list