diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-03-24 04:53:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:16 -0500 |
commit | 21d9419b1e4d6ef113a26382315ad96b3509d156 (patch) | |
tree | b985b3a434e66ce5b44bc747ec66fc89df5b5f1f | |
parent | 73b77ee15159207870d7c18cd12c02daf4fd2bc0 (diff) | |
download | samba-21d9419b1e4d6ef113a26382315ad96b3509d156.tar.gz samba-21d9419b1e4d6ef113a26382315ad96b3509d156.tar.bz2 samba-21d9419b1e4d6ef113a26382315ad96b3509d156.zip |
r6031: don't try to send errors when the socket has been destroyed
(This used to be commit 54c02846791cd8bda942fec847257c00013d3409)
-rw-r--r-- | source4/smb_server/request.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smb_server/request.c b/source4/smb_server/request.c index c690494d58..17c6d0329c 100644 --- a/source4/smb_server/request.c +++ b/source4/smb_server/request.c @@ -368,6 +368,11 @@ void req_setup_error(struct smbsrv_request *req, NTSTATUS status) */ 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 */ |