From: Jeremy Allison Date: Mon, 24 Apr 2017 22:35:18 +0000 (-0700) Subject: s4: torture: Add a TALLOC_CTX * to torture_smb2_notify_disabled_init(). X-Git-Tag: ldb-1.1.30~322 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0613ed15fb6d51bf9cfb8e2fe72f5ba91a85989;p=thirdparty%2Fsamba.git s4: torture: Add a TALLOC_CTX * to torture_smb2_notify_disabled_init(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source4/torture/smb2/notify_disabled.c b/source4/torture/smb2/notify_disabled.c index 0faeb519d19..a7bbebdad0c 100644 --- a/source4/torture/smb2/notify_disabled.c +++ b/source4/torture/smb2/notify_disabled.c @@ -108,9 +108,10 @@ done: /* basic testing of SMB2 change notify */ -struct torture_suite *torture_smb2_notify_disabled_init(void) +struct torture_suite *torture_smb2_notify_disabled_init(TALLOC_CTX *ctx) { - struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "change_notify_disabled"); + struct torture_suite *suite = torture_suite_create(ctx, + "change_notify_disabled"); torture_suite_add_1smb2_test(suite, "notfiy_disabled", torture_smb2_notify_disabled); suite->description = talloc_strdup(suite, "SMB2-CHANGE-NOTIFY-DISABLED tests"); diff --git a/source4/torture/smb2/smb2.c b/source4/torture/smb2/smb2.c index c493811edf0..50391a5c50a 100644 --- a/source4/torture/smb2/smb2.c +++ b/source4/torture/smb2/smb2.c @@ -155,7 +155,8 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx) 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(suite)); - torture_suite_add_suite(suite, torture_smb2_notify_disabled_init()); + torture_suite_add_suite(suite, + torture_smb2_notify_disabled_init(suite)); torture_suite_add_suite(suite, torture_smb2_durable_open_init(suite)); torture_suite_add_suite(suite, torture_smb2_durable_open_disconnect_init(suite));