Skip to content

Commit

Permalink
s4: torture: Add a TALLOC_CTX * to torture_smb2_replay_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 af7ce00 commit a0552b1
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/replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -2427,10 +2427,10 @@ static bool test_replay6(struct torture_context *tctx, struct smb2_tree *tree)
return ret;
}

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

torture_suite_add_1smb2_test(suite, "replay-commands", test_replay_commands);
torture_suite_add_1smb2_test(suite, "replay-regular", test_replay_regular);
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 @@ -174,7 +174,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx)
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_replay_init());
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);
torture_suite_add_suite(suite, torture_smb2_crediting_init(suite));
Expand Down

0 comments on commit a0552b1

Please sign in to comment.