1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r4382: check for bad tid in SMBtdis

This commit is contained in:
Andrew Tridgell 2004-12-28 23:26:29 +00:00 committed by Gerald (Jerry) Carter
parent 9e27a83ac3
commit 44ca3f41cc

View File

@ -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 */