diff options
-rw-r--r-- | source4/smb_server/reply.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c index be5120c991..980f48bf57 100644 --- a/source4/smb_server/reply.c +++ b/source4/smb_server/reply.c @@ -1355,6 +1355,11 @@ void reply_tdis(struct smbsrv_request *req) { REQ_CHECK_WCT(req, 0); + if (req->tcon == NULL) { + req_reply_error(req, NT_STATUS_INVALID_HANDLE); + return; + } + close_cnum(req->tcon); /* construct reply */ |