From 48d954b90e6aa14721d236180df959a038416672 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Jan 2013 16:52:11 -0800 Subject: Fix the compound tests to correctly pass against Windows when run with --signing=required. Signed-off-by: Jeremy Allison Reviewed-by: Richard Sharpe Autobuild-User(master): Richard Sharpe Autobuild-Date(master): Thu Jan 31 03:53:55 CET 2013 on sn-devel-104 --- source4/torture/smb2/compound.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/torture/smb2') 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); -- cgit