summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-01-28 16:52:11 -0800
committerRichard Sharpe <sharpe@samba.org>2013-01-31 03:53:55 +0100
commit48d954b90e6aa14721d236180df959a038416672 (patch)
treea610dbcfa6850a0b4c5a9d7048a51b7c8adc540a /source4/torture/smb2
parent1624d83fdeb675ee4032f5d3cabcf86d5b05a3cb (diff)
downloadsamba-48d954b90e6aa14721d236180df959a038416672.tar.gz
samba-48d954b90e6aa14721d236180df959a038416672.tar.bz2
samba-48d954b90e6aa14721d236180df959a038416672.zip
Fix the compound tests to correctly pass against Windows when run with --signing=required.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.org> Autobuild-User(master): Richard Sharpe <sharpe@samba.org> Autobuild-Date(master): Thu Jan 31 03:53:55 CET 2013 on sn-devel-104
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/compound.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/smb2/compound.c b/source4/torture/smb2/compound.c
index e75f6827e4..4a47e143fb 100644
--- a/source4/torture/smb2/compound.c
+++ b/source4/torture/smb2/compound.c
@@ -92,8 +92,8 @@ static bool test_compound_related1(struct torture_context *tctx,
0, /* capabilities */
0 /* maximal_access */);
- tree->session->smbXcli = smbXcli_session_create(tree->session,
- tree->session->transport->conn);
+ tree->session->smbXcli = smbXcli_session_copy(tree->session,
+ tree->session->smbXcli);
smb2cli_session_set_id_and_flags(tree->session->smbXcli, UINT64_MAX, 0);
req[1] = smb2_close_send(tree, &cl);
@@ -171,8 +171,8 @@ static bool test_compound_related2(struct torture_context *tctx,
0, /* capabilities */
0 /* maximal_access */);
- tree->session->smbXcli = smbXcli_session_create(tree->session,
- tree->session->transport->conn);
+ tree->session->smbXcli = smbXcli_session_copy(tree->session,
+ tree->session->smbXcli);
smb2cli_session_set_id_and_flags(tree->session->smbXcli, UINT64_MAX, 0);
req[1] = smb2_close_send(tree, &cl);
@@ -459,8 +459,8 @@ static bool test_compound_invalid2(struct torture_context *tctx,
0, /* capabilities */
0 /* maximal_access */);
- tree->session->smbXcli = smbXcli_session_create(tree->session,
- tree->session->transport->conn);
+ tree->session->smbXcli = smbXcli_session_copy(tree->session,
+ tree->session->smbXcli);
smb2cli_session_set_id_and_flags(tree->session->smbXcli, UINT64_MAX, 0);
req[1] = smb2_close_send(tree, &cl);