summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-09-29 10:30:21 +0200
committerJeremy Allison <jra@samba.org>2014-10-07 22:47:04 +0200
commitd021a2d90fcef537419347bbb679346f96313312 (patch)
tree1b6e621b512afea238be2fdedd83cc65aac01fad /libcli
parent2a4290fa00c3dd35772b28b9aabeaf26999f0219 (diff)
downloadsamba-d021a2d90fcef537419347bbb679346f96313312.tar.gz
libcli/smb: pass tcon flags to the server for SMB 3.10
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'libcli')
-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);