From: Jeremy Allison Date: Mon, 24 Apr 2017 22:33:53 +0000 (-0700) Subject: s4: torture: Add a TALLOC_CTX * to torture_smb2_notify_init(). X-Git-Tag: ldb-1.1.30~323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=123973e684cda747d8ab68c52d31196af77f769d;p=thirdparty%2Fsamba.git s4: torture: Add a TALLOC_CTX * to torture_smb2_notify_init(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index 90f5ad9a633..9fc856cd1a4 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -2357,9 +2357,9 @@ static bool torture_smb2_notify_rmdir4(struct torture_context *torture, /* basic testing of SMB2 change notify */ -struct torture_suite *torture_smb2_notify_init(void) +struct torture_suite *torture_smb2_notify_init(TALLOC_CTX *ctx) { - struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "notify"); + struct torture_suite *suite = torture_suite_create(ctx, "notify"); torture_suite_add_1smb2_test(suite, "valid-req", test_valid_request); torture_suite_add_1smb2_test(suite, "tcon", torture_smb2_notify_tcon); diff --git a/source4/torture/smb2/smb2.c b/source4/torture/smb2/smb2.c index cf785b8dcbf..c493811edf0 100644 --- a/source4/torture/smb2/smb2.c +++ b/source4/torture/smb2/smb2.c @@ -154,7 +154,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx) torture_suite_add_suite(suite, torture_smb2_read_init()); torture_suite_add_suite(suite, torture_smb2_create_init(suite)); torture_suite_add_suite(suite, torture_smb2_acls_init(suite)); - torture_suite_add_suite(suite, torture_smb2_notify_init()); + torture_suite_add_suite(suite, torture_smb2_notify_init(suite)); torture_suite_add_suite(suite, torture_smb2_notify_disabled_init()); torture_suite_add_suite(suite, torture_smb2_durable_open_init(suite)); torture_suite_add_suite(suite,