diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-03-25 22:29:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:59:17 -0500 |
commit | b983fd949b802af4d1045fc5175c5dfa96b6896b (patch) | |
tree | a1658b0266b3c8a6f17a4e1db5f4ccd3765bd072 /source4/smb_server/smb | |
parent | 7011384a3ae8b1554b420702770a382f106fe7cb (diff) | |
download | samba-b983fd949b802af4d1045fc5175c5dfa96b6896b.tar.gz samba-b983fd949b802af4d1045fc5175c5dfa96b6896b.tar.bz2 samba-b983fd949b802af4d1045fc5175c5dfa96b6896b.zip |
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)
Diffstat (limited to 'source4/smb_server/smb')
-rw-r--r-- | source4/smb_server/smb/receive.c | 3 |
1 files changed, 2 insertions, 1 deletions
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: |