summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);