diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/compound.c | 12 |
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); |