mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
r6020: Never do NT status codes with protocols before NT1 as we don't get client caps.
Jeremy.
(This used to be commit 4868e42027
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
899ade0e62
commit
5415480d7e
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user