mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:libsmb: set correct min and max smb protocol when smb2 is enforced on connect
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14105 Pair-programmed-with: Stefan Metzmacher <metze@samba.org> Signed-off-by: Björn Baumbach <bb@sernet.de> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
f40da74e14
commit
76121ae7cf
@ -2805,8 +2805,10 @@ static struct tevent_req *cli_start_connection_send(
|
||||
}
|
||||
|
||||
if (flags & CLI_FULL_CONNECTION_DISABLE_SMB1) {
|
||||
state->min_protocol = MAX(state->max_protocol, PROTOCOL_SMB2_02);
|
||||
state->max_protocol = MAX(state->max_protocol, PROTOCOL_LATEST);
|
||||
state->min_protocol = MAX(state->min_protocol,
|
||||
PROTOCOL_SMB2_02);
|
||||
state->max_protocol = MAX(state->max_protocol,
|
||||
state->min_protocol);
|
||||
}
|
||||
|
||||
subreq = cli_connect_nb_send(state, ev, dest_host, dest_ss, port,
|
||||
|
Loading…
Reference in New Issue
Block a user