summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/notify.c10
-rw-r--r--source4/torture/smb2/util.c8
2 files changed, 18 insertions, 0 deletions
diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c
index 7a4e5622d2..c374ae781e 100644
--- a/source4/torture/smb2/notify.c
+++ b/source4/torture/smb2/notify.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
+#include "../libcli/smb/smbXcli_base.h"
#include "torture/torture.h"
#include "torture/smb2/proto.h"
@@ -1820,6 +1821,15 @@ static struct smb2_tree *secondary_tcon(struct smb2_tree *tree,
}
tree1->tid = tcon.smb2.out.tid;
+ tree1->capabilities = tcon.smb2.out.capabilities;
+
+ smb2cli_tcon_set_values(tree1->smbXcli,
+ tcon.smb2.out.tid,
+ tcon.smb2.out.share_type,
+ tcon.smb2.out.flags,
+ tcon.smb2.out.capabilities,
+ tcon.smb2.out.access_mask);
+
torture_comment(tctx,"tid1=%d tid2=%d\n", tree->tid, tree1->tid);
return tree1;
diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c
index e966b9cbe4..0e5f1e1f07 100644
--- a/source4/torture/smb2/util.c
+++ b/source4/torture/smb2/util.c
@@ -23,6 +23,7 @@
#include "libcli/security/security_descriptor.h"
#include "libcli/smb2/smb2.h"
#include "libcli/smb2/smb2_calls.h"
+#include "../libcli/smb/smbXcli_base.h"
#include "lib/cmdline/popt_common.h"
#include "system/time.h"
#include "librpc/gen_ndr/ndr_security.h"
@@ -297,6 +298,13 @@ bool torture_smb2_tree_connect(struct torture_context *tctx,
tree->tid = tcon.out.tid;
tree->capabilities = tcon.out.capabilities;
+ smb2cli_tcon_set_values(tree->smbXcli,
+ tcon.out.tid,
+ tcon.out.share_type,
+ tcon.out.flags,
+ tcon.out.capabilities,
+ tcon.out.access_mask);
+
*_tree = tree;
return true;