diff options
author | Jeremy Allison <jra@samba.org> | 2017-04-24 15:22:37 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-05 15:52:12 +0200 |
commit | 44a1dc363433517f83fb04427ebba6db4f9f9e4d (patch) | |
tree | 4dff7870b7640684f91f4f12c3c4e11dd011b383 /source4/torture/smb2 | |
parent | 9aa023a1887db79b492c55b1c82a4e02350a5e0b (diff) | |
download | samba-44a1dc363433517f83fb04427ebba6db4f9f9e4d.tar.gz |
s4: torture: Add a TALLOC_CTX * to torture_smb2_dir_init().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r-- | source4/torture/smb2/dir.c | 4 | ||||
-rw-r--r-- | source4/torture/smb2/smb2.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/smb2/dir.c b/source4/torture/smb2/dir.c index db906db882b..7da104b1ac4 100644 --- a/source4/torture/smb2/dir.c +++ b/source4/torture/smb2/dir.c @@ -1380,10 +1380,10 @@ done: return ret; } -struct torture_suite *torture_smb2_dir_init(void) +struct torture_suite *torture_smb2_dir_init(TALLOC_CTX *ctx) { struct torture_suite *suite = - torture_suite_create(talloc_autofree_context(), "dir"); + torture_suite_create(ctx, "dir"); torture_suite_add_1smb2_test(suite, "find", test_find); torture_suite_add_1smb2_test(suite, "fixed", test_fixed); diff --git a/source4/torture/smb2/smb2.c b/source4/torture/smb2/smb2.c index 299774468d1..5175f344d70 100644 --- a/source4/torture/smb2/smb2.c +++ b/source4/torture/smb2/smb2.c @@ -159,7 +159,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx) torture_suite_add_suite(suite, torture_smb2_durable_open_init()); torture_suite_add_suite(suite, torture_smb2_durable_open_disconnect_init()); torture_suite_add_suite(suite, torture_smb2_durable_v2_open_init()); - torture_suite_add_suite(suite, torture_smb2_dir_init()); + torture_suite_add_suite(suite, torture_smb2_dir_init(suite)); torture_suite_add_suite(suite, torture_smb2_lease_init()); torture_suite_add_suite(suite, torture_smb2_compound_init(suite)); torture_suite_add_suite(suite, torture_smb2_compound_find_init(suite)); |