s4: torture: Add a TALLOC_CTX * to torture_smb2_notify_disabled_init().
authorJeremy Allison <jra@samba.org>
Mon, 24 Apr 2017 22:35:18 +0000 (15:35 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 5 May 2017 13:52:13 +0000 (15:52 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source4/torture/smb2/notify_disabled.c
source4/torture/smb2/smb2.c

index 0faeb519d19152ca98661a4ea4c3711141227d56..a7bbebdad0c8fb5f4e0a0a5f4f8ab9243e1f942e 100644 (file)
@@ -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");
index c493811edf016d5a0b0bea41851cbdcb48ff3537..50391a5c50a7b7a2a8769be2a1b040d78acb7522 100644 (file)
@@ -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));