1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:libsmb: set min smb protocol when enforcing smb1 on connect

Otherwise the connect fails if the configured client min protocol is
higher than NT1.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14105

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Björn Baumbach 2019-08-28 14:11:02 +02:00 committed by Stefan Metzmacher
parent 98119189cf
commit f40da74e14

View File

@ -2798,7 +2798,10 @@ static struct tevent_req *cli_start_connection_send(
}
if (flags & CLI_FULL_CONNECTION_FORCE_SMB1) {
state->max_protocol = MIN(state->max_protocol, PROTOCOL_NT1);
state->max_protocol = MIN(state->max_protocol,
PROTOCOL_NT1);
state->min_protocol = MIN(state->min_protocol,
state->max_protocol);
}
if (flags & CLI_FULL_CONNECTION_DISABLE_SMB1) {