Skip to content

Commit

Permalink
s4: torture: Add a TALLOC_CTX * to torture_smb2_session_init().
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Allison <[email protected]>
Reviewed-by: Ralph Böhme <[email protected]>
  • Loading branch information
jrasamba committed May 5, 2017
1 parent 6c45ca7 commit 097ffa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source4/torture/smb2/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1306,10 +1306,10 @@ bool test_session_bind1(struct torture_context *tctx, struct smb2_tree *tree1)
return ret;
}

struct torture_suite *torture_smb2_session_init(void)
struct torture_suite *torture_smb2_session_init(TALLOC_CTX *ctx)
{
struct torture_suite *suite =
torture_suite_create(talloc_autofree_context(), "session");
torture_suite_create(ctx, "session");

torture_suite_add_1smb2_test(suite, "reconnect1", test_session_reconnect1);
torture_suite_add_1smb2_test(suite, "reconnect2", test_session_reconnect2);
Expand Down
2 changes: 1 addition & 1 deletion source4/torture/smb2/smb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx)
torture_suite_add_suite(suite, torture_smb2_rename_init(suite));
torture_suite_add_1smb2_test(suite, "bench-oplock", test_smb2_bench_oplock);
torture_suite_add_1smb2_test(suite, "hold-oplock", test_smb2_hold_oplock);
torture_suite_add_suite(suite, torture_smb2_session_init());
torture_suite_add_suite(suite, torture_smb2_session_init(suite));
torture_suite_add_suite(suite, torture_smb2_replay_init(suite));
torture_suite_add_simple_test(suite, "dosmode", torture_smb2_dosmode);
torture_suite_add_simple_test(suite, "maxfid", torture_smb2_maxfid);
Expand Down

0 comments on commit 097ffa7

Please sign in to comment.