diff options
author | Jeremy Allison <jra@samba.org> | 2005-03-24 01:02:52 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2005-03-24 01:02:52 +0000 |
commit | 28337ff9005d4a7ed3420cdad35ca637d81cdf00 (patch) | |
tree | 24f7c41688558fa81de23c7bd191760344bb6901 /source | |
parent | 3cc6f7975e15d8a1ea1372c60acb904eda38b29a (diff) | |
download | samba-28337ff9005d4a7ed3420cdad35ca637d81cdf00.tar.gz samba-28337ff9005d4a7ed3420cdad35ca637d81cdf00.tar.xz samba-28337ff9005d4a7ed3420cdad35ca637d81cdf00.zip |
r6020: Never do NT status codes with protocols before NT1 as we don't get client caps.
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/smbd/sesssetup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c index e1fb71d5754..48524b472d2 100644 --- a/source/smbd/sesssetup.c +++ b/source/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); } |