From b983fd949b802af4d1045fc5175c5dfa96b6896b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 25 Mar 2006 22:29:45 +0000 Subject: r14733: SMBtdis needs a TCON and doesn't need a SESSION, on an invalid tcon it gives NT_STATUS_DOS(ERRSRV, ERRinvnid) metze (This used to be commit fca74f2a4ba7d4a18801294a6b2be548864a5252) --- source4/smb_server/smb/receive.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/smb_server/smb/receive.c b/source4/smb_server/smb/receive.c index 73c2ccb5b4..d049475dd2 100644 --- a/source4/smb_server/smb/receive.c +++ b/source4/smb_server/smb/receive.c @@ -287,7 +287,7 @@ static const struct smb_message_struct /* 0x6e */ { NULL, NULL, 0 }, /* 0x6f */ { NULL, NULL, 0 }, /* 0x70 */ { "SMBtcon", smbsrv_reply_tcon, NEED_SESS }, -/* 0x71 */ { "SMBtdis", smbsrv_reply_tdis, NEED_SESS }, +/* 0x71 */ { "SMBtdis", smbsrv_reply_tdis, NEED_TCON }, /* 0x72 */ { "SMBnegprot", smbsrv_reply_negprot, 0 }, /* 0x73 */ { "SMBsesssetupX", smbsrv_reply_sesssetup, 0 }, /* 0x74 */ { "SMBulogoffX", smbsrv_reply_ulogoffX, NEED_SESS }, /* ulogoff doesn't give a valid TID */ @@ -530,6 +530,7 @@ static void switch_message(int type, struct smbsrv_request *req) switch (type) { case SMBntcreateX: case SMBntcancel: + case SMBtdis: status = NT_STATUS_DOS(ERRSRV, ERRinvnid); break; default: -- cgit