mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
1cd3394d70
commit
3c8067a63f
@ -4756,7 +4756,7 @@ static struct tevent_req *smbXcli_negprot_smb2_subreq(struct smbXcli_negprot_sta
|
|||||||
SSVAL(buf, 2, dialect_count);
|
SSVAL(buf, 2, dialect_count);
|
||||||
SSVAL(buf, 4, state->conn->smb2.client.security_mode);
|
SSVAL(buf, 4, state->conn->smb2.client.security_mode);
|
||||||
SSVAL(buf, 6, 0); /* Reserved */
|
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);
|
SIVAL(buf, 8, state->conn->smb2.client.capabilities);
|
||||||
} else {
|
} else {
|
||||||
SIVAL(buf, 8, 0); /* Capabilities */
|
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;
|
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);
|
SIVAL(buf, 0, conn->smb2.client.capabilities);
|
||||||
} else {
|
} else {
|
||||||
SIVAL(buf, 0, 0); /* Capabilities */
|
SIVAL(buf, 0, 0); /* Capabilities */
|
||||||
|
Loading…
Reference in New Issue
Block a user