summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-13 02:02:54 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-13 02:02:54 +0000
commita027153046b2eb80e5c884c4ceadc4507844ac85 (patch)
treebcf60b7e81a15943d427601e1e1ace869a428b98
parentb05a2aad5434b188b624db97fb53dc67534a24c6 (diff)
downloadsamba-a027153046b2eb80e5c884c4ceadc4507844ac85.tar.gz
samba-a027153046b2eb80e5c884c4ceadc4507844ac85.tar.bz2
samba-a027153046b2eb80e5c884c4ceadc4507844ac85.zip
check for an invalid TID in reply_exit()
(This used to be commit fca5a1e89db126c6f7d7ac3caa841918147ef614)
-rw-r--r--source4/smbd/reply.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smbd/reply.c b/source4/smbd/reply.c
index 07fcf06a0c..bc9a3b6a06 100644
--- a/source4/smbd/reply.c
+++ b/source4/smbd/reply.c
@@ -1187,6 +1187,11 @@ void reply_exit(struct request_context *req)
req->async.send_fn = reply_simple_send;
+ if (!req->conn) {
+ req_reply_error(req, NT_STATUS_INVALID_HANDLE);
+ return;
+ }
+
/* call backend */
req->async.status = req->conn->ntvfs_ops->exit(req);