summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/smb2/connect.c1
-rw-r--r--source4/libcli/smb2/smb2.h1
-rw-r--r--source4/torture/smb2/util.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c
index 77b974475e..b2657f2568 100644
--- a/source4/libcli/smb2/connect.c
+++ b/source4/libcli/smb2/connect.c
@@ -242,6 +242,7 @@ static void smb2_connect_tcon_done(struct smb2_request *smb2req)
}
state->tree->tid = state->tcon.out.tid;
+ state->tree->capabilities = state->tcon.out.capabilities;
tevent_req_done(req);
}
diff --git a/source4/libcli/smb2/smb2.h b/source4/libcli/smb2/smb2.h
index 1cff5eac59..c4dc0001a0 100644
--- a/source4/libcli/smb2/smb2.h
+++ b/source4/libcli/smb2/smb2.h
@@ -107,6 +107,7 @@ struct smb2_transport {
struct smb2_tree {
struct smb2_session *session;
uint32_t tid;
+ uint32_t capabilities;
};
/*
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c
index 62e4681563..e966b9cbe4 100644
--- a/source4/torture/smb2/util.c
+++ b/source4/torture/smb2/util.c
@@ -295,6 +295,7 @@ bool torture_smb2_tree_connect(struct torture_context *tctx,
}
tree->tid = tcon.out.tid;
+ tree->capabilities = tcon.out.capabilities;
*_tree = tree;