s4: torture: Change torture_register_suite() to add a TALLOC_CTX *.
[gd/samba-autobuild/.git] / source4 / torture / nbt / nbt.c
index 1b7fe49cf84d100e0709863a63e3301dad170209..f350885ed49969b76d3c3877bab20c7d26dce6dd 100644 (file)
@@ -48,10 +48,10 @@ bool torture_nbt_get_name(struct torture_context *tctx,
        return true;
 }
 
-NTSTATUS torture_nbt_init(void)
+NTSTATUS torture_nbt_init(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(
-               talloc_autofree_context(), "nbt");
+               ctx, "nbt");
        /* nbt tests */
        torture_suite_add_suite(suite, torture_nbt_register(suite));
        torture_suite_add_suite(suite, torture_nbt_wins(suite));
@@ -63,7 +63,7 @@ NTSTATUS torture_nbt_init(void)
        suite->description = talloc_strdup(suite, 
                                         "NetBIOS over TCP/IP and WINS tests");
 
-       torture_register_suite(suite);
+       torture_register_suite(ctx, suite);
 
        return NT_STATUS_OK;
 }