summaryrefslogtreecommitdiff
path: root/libcli/smb/smb2cli_tcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/smb/smb2cli_tcon.c')
-rw-r--r--libcli/smb/smb2cli_tcon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcli/smb/smb2cli_tcon.c b/libcli/smb/smb2cli_tcon.c
index dd453d89f14..8863bae0764 100644
--- a/libcli/smb/smb2cli_tcon.c
+++ b/libcli/smb/smb2cli_tcon.c
@@ -76,6 +76,11 @@ struct tevent_req *smb2cli_tcon_send(TALLOC_CTX *mem_ctx,
fixed = state->fixed;
SSVAL(fixed, 0, 9);
+ if (smbXcli_conn_protocol(conn) >= PROTOCOL_SMB3_10) {
+ SSVAL(fixed, 2, flags);
+ } else {
+ SSVAL(fixed, 2, 0); /* Reserved */
+ }
SSVAL(fixed, 4, SMB2_HDR_BODY + 8);
SSVAL(fixed, 6, dyn_len);