Author: metze Date: 2006-03-25 22:29:45 +0000 (Sat, 25 Mar 2006) New Revision: 14733
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14733 Log: SMBtdis needs a TCON and doesn't need a SESSION, on an invalid tcon it gives NT_STATUS_DOS(ERRSRV, ERRinvnid) metze Modified: branches/SAMBA_4_0/source/smb_server/smb/receive.c Changeset: Modified: branches/SAMBA_4_0/source/smb_server/smb/receive.c =================================================================== --- branches/SAMBA_4_0/source/smb_server/smb/receive.c 2006-03-25 22:20:48 UTC (rev 14732) +++ branches/SAMBA_4_0/source/smb_server/smb/receive.c 2006-03-25 22:29:45 UTC (rev 14733) @@ -287,7 +287,7 @@ /* 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 @@ switch (type) { case SMBntcreateX: case SMBntcancel: + case SMBtdis: status = NT_STATUS_DOS(ERRSRV, ERRinvnid); break; default:
