Skip to content

Commit

Permalink
s4: torture: Add a TALLOC_CTX * to torture_smb2_scan_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 a0552b1 commit 6c45ca7
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/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ static bool torture_smb2_scan(struct torture_context *tctx)
return true;
}

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

torture_suite_add_simple_test(suite, "scan", torture_smb2_scan);
torture_suite_add_simple_test(suite, "getinfo", torture_smb2_getinfo_scan);
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 @@ -147,7 +147,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx)
{
struct torture_suite *suite = torture_suite_create(ctx, "smb2");
torture_suite_add_simple_test(suite, "connect", torture_smb2_connect);
torture_suite_add_suite(suite, torture_smb2_scan_init());
torture_suite_add_suite(suite, torture_smb2_scan_init(suite));
torture_suite_add_suite(suite, torture_smb2_getinfo_init());
torture_suite_add_simple_test(suite, "setinfo", torture_smb2_setinfo);
torture_suite_add_suite(suite, torture_smb2_lock_init(suite));
Expand Down

0 comments on commit 6c45ca7

Please sign in to comment.