summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-04-24 15:09:36 -0700
committerJeremy Allison <jra@samba.org>2017-05-05 15:52:11 +0200
commit6a53ce5dd77075ebbbcca5b7558563cd6c87aa9f (patch)
tree1dc1a118f1ee7b2e23bf72f65aea79d110a973de
parentc99994eb5a01d882ada9e581c2824facf103b7b7 (diff)
downloadsamba-6a53ce5dd77075ebbbcca5b7558563cd6c87aa9f.tar.gz
s4: torture: Add TALLOC_CTX * to torture_winbind_init().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
-rw-r--r--nsswitch/libwbclient/tests/wbclient.c4
-rw-r--r--source4/torture/winbind/winbind.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c
index b3c93a199c4..c5428afac43 100644
--- a/nsswitch/libwbclient/tests/wbclient.c
+++ b/nsswitch/libwbclient/tests/wbclient.c
@@ -925,9 +925,9 @@ static bool test_wbc_getgroups(struct torture_context *tctx)
return true;
}
-struct torture_suite *torture_wbclient(void)
+struct torture_suite *torture_wbclient(TALLOC_CTX *ctx)
{
- struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "wbclient");
+ struct torture_suite *suite = torture_suite_create(ctx, "wbclient");
torture_suite_add_simple_test(suite, "wbcPing", test_wbc_ping);
torture_suite_add_simple_test(suite, "wbcPingDc", test_wbc_pingdc);
diff --git a/source4/torture/winbind/winbind.c b/source4/torture/winbind/winbind.c
index d05918ae1e6..fec95e87f64 100644
--- a/source4/torture/winbind/winbind.c
+++ b/source4/torture/winbind/winbind.c
@@ -295,7 +295,7 @@ NTSTATUS torture_winbind_init(TALLOC_CTX *ctx)
struct torture_suite *suite = torture_suite_create(ctx, "winbind");
struct torture_suite *pac_suite;
torture_suite_add_suite(suite, torture_winbind_struct_init());
- torture_suite_add_suite(suite, torture_wbclient());
+ torture_suite_add_suite(suite, torture_wbclient(suite));
pac_suite = torture_suite_create(ctx, "pac");
torture_suite_add_simple_test(pac_suite,