diff options
author | Jeremy Allison <jra@samba.org> | 2005-03-24 01:02:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:16 -0500 |
commit | 5415480d7eea3ddd319625087e6ed902cd6e04c6 (patch) | |
tree | 1cc75ea2892a80480c237152cd5672ec624e6383 /source3/smbd/sesssetup.c | |
parent | 899ade0e62ebbfd6994101c45bb56d20357535af (diff) | |
download | samba-5415480d7eea3ddd319625087e6ed902cd6e04c6.tar.gz samba-5415480d7eea3ddd319625087e6ed902cd6e04c6.tar.bz2 samba-5415480d7eea3ddd319625087e6ed902cd6e04c6.zip |
r6020: Never do NT status codes with protocols before NT1 as we don't get client caps.
Jeremy.
(This used to be commit 4868e4202775c1c0a60828e0c6f6fa23cf8346e1)
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r-- | source3/smbd/sesssetup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index e1fb71d575..48524b472d 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -677,6 +677,10 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf, if (Protocol < PROTOCOL_NT1) { uint16 passlen1 = SVAL(inbuf,smb_vwv7); + + /* Never do NT status codes with protocols before NT1 as we don't get client caps. */ + remove_from_common_flags2(FLAGS2_32_BIT_ERROR_CODES); + if ((passlen1 > MAX_PASS_LEN) || (passlen1 > smb_bufrem(inbuf, smb_buf(inbuf)))) { return ERROR_NT(NT_STATUS_INVALID_PARAMETER); } |