From a027153046b2eb80e5c884c4ceadc4507844ac85 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Aug 2003 02:02:54 +0000 Subject: check for an invalid TID in reply_exit() (This used to be commit fca5a1e89db126c6f7d7ac3caa841918147ef614) --- source4/smbd/reply.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/smbd') 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); -- cgit