From 9aa023a1887db79b492c55b1c82a4e02350a5e0b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 24 Apr 2017 15:20:58 -0700 Subject: s4: torture: Add a TALLOC_CTX * to torture_smb2_doc_init(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- source4/torture/smb2/delete-on-close.c | 4 ++-- source4/torture/smb2/smb2.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source4') 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"); -- cgit v1.2.1