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>
}
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) {