summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-04-24 15:20:58 -0700
committerJeremy Allison <jra@samba.org>2017-05-05 15:52:12 +0200
commit9aa023a1887db79b492c55b1c82a4e02350a5e0b (patch)
treee6a400055d6aa8e94f467ccc106481b21ad422d5 /source4
parentb871d5fdaeced5d8f779f5b832e7f8f8579cdbd7 (diff)
downloadsamba-9aa023a1887db79b492c55b1c82a4e02350a5e0b.tar.gz
s4: torture: Add a TALLOC_CTX * to torture_smb2_doc_init().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/delete-on-close.c4
-rw-r--r--source4/torture/smb2/smb2.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/smb2/delete-on-close.c b/source4/torture/smb2/delete-on-close.c
index a12c2abc452..44ef33ec6f8 100644
--- a/source4/torture/smb2/delete-on-close.c
+++ b/source4/torture/smb2/delete-on-close.c
@@ -519,9 +519,9 @@ static bool test_doc_create_if_exist(struct torture_context *tctx, struct smb2_t
/*
* Extreme testing of Delete On Close and permissions
*/
-struct torture_suite *torture_smb2_doc_init(void)
+struct torture_suite *torture_smb2_doc_init(TALLOC_CTX *ctx)
{
- struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "delete-on-close-perms");
+ struct torture_suite *suite = torture_suite_create(ctx, "delete-on-close-perms");
torture_suite_add_1smb2_test(suite, "OVERWRITE_IF", test_doc_overwrite_if);
torture_suite_add_1smb2_test(suite, "OVERWRITE_IF Existing", test_doc_overwrite_if_exist);
diff --git a/source4/torture/smb2/smb2.c b/source4/torture/smb2/smb2.c
index b9997dd22e8..299774468d1 100644
--- a/source4/torture/smb2/smb2.c
+++ b/source4/torture/smb2/smb2.c
@@ -176,7 +176,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx)
torture_suite_add_simple_test(suite, "maxfid", torture_smb2_maxfid);
torture_suite_add_suite(suite, torture_smb2_crediting_init(suite));
- torture_suite_add_suite(suite, torture_smb2_doc_init());
+ torture_suite_add_suite(suite, torture_smb2_doc_init(suite));
suite->description = talloc_strdup(suite, "SMB2-specific tests");