mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
CVE-2016-2115: s4:libcli/raw: limit maxprotocol to NT1 in smb_raw_negotiate*()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11756 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
5721234328
commit
57f0b0c6c0
@ -51,6 +51,10 @@ struct tevent_req *smb_raw_negotiate_send(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
state->transport = transport;
|
||||
|
||||
if (maxprotocol > PROTOCOL_NT1) {
|
||||
maxprotocol = PROTOCOL_NT1;
|
||||
}
|
||||
|
||||
subreq = smbXcli_negprot_send(state, ev,
|
||||
transport->conn,
|
||||
timeout_msec,
|
||||
|
Loading…
x
Reference in New Issue
Block a user