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

libcli/smb: replace PROTOCOL_SMB2_22 with PROTOCOL_SMB3_00

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2020-11-11 15:14:12 +01:00
parent 1cd3394d70
commit 3c8067a63f

View File

@ -4756,7 +4756,7 @@ static struct tevent_req *smbXcli_negprot_smb2_subreq(struct smbXcli_negprot_sta
SSVAL(buf, 2, dialect_count);
SSVAL(buf, 4, state->conn->smb2.client.security_mode);
SSVAL(buf, 6, 0); /* Reserved */
if (state->conn->max_protocol >= PROTOCOL_SMB2_22) {
if (state->conn->max_protocol >= PROTOCOL_SMB3_00) {
SIVAL(buf, 8, state->conn->smb2.client.capabilities);
} else {
SIVAL(buf, 8, 0); /* Capabilities */
@ -5379,7 +5379,7 @@ struct tevent_req *smb2cli_validate_negotiate_info_send(TALLOC_CTX *mem_ctx,
}
buf = state->in_input_buffer.data;
if (state->conn->max_protocol >= PROTOCOL_SMB2_22) {
if (state->conn->max_protocol >= PROTOCOL_SMB3_00) {
SIVAL(buf, 0, conn->smb2.client.capabilities);
} else {
SIVAL(buf, 0, 0); /* Capabilities */