summaryrefslogtreecommitdiff
path: root/source4/torture/winbind
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-04-24 15:50:37 -0700
committerJeremy Allison <jra@samba.org>2017-05-05 15:52:13 +0200
commit3400451fea9ceb1d1c5a6a681e23cae241f6c50e (patch)
tree69da3858af7547504cd40ce8eef133b50f9e0ce1 /source4/torture/winbind
parentaff82778170739082958ce717681c79e5ef7b5ab (diff)
downloadsamba-3400451fea9ceb1d1c5a6a681e23cae241f6c50e.tar.gz
s4: torture: Add a TALLOC_CTX * to torture_winbind_struct_init().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source4/torture/winbind')
-rw-r--r--source4/torture/winbind/struct_based.c4
-rw-r--r--source4/torture/winbind/winbind.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c
index 1a84a7a2c2d..9cf0102015a 100644
--- a/source4/torture/winbind/struct_based.c
+++ b/source4/torture/winbind/struct_based.c
@@ -1074,9 +1074,9 @@ static bool torture_winbind_struct_lookup_name_sid(struct torture_context *tortu
return true;
}
-struct torture_suite *torture_winbind_struct_init(void)
+struct torture_suite *torture_winbind_struct_init(TALLOC_CTX *ctx)
{
- struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "struct");
+ struct torture_suite *suite = torture_suite_create(ctx, "struct");
torture_suite_add_simple_test(suite, "interface_version", torture_winbind_struct_interface_version);
torture_suite_add_simple_test(suite, "ping", torture_winbind_struct_ping);
diff --git a/source4/torture/winbind/winbind.c b/source4/torture/winbind/winbind.c
index fec95e87f64..82c817c3eb1 100644
--- a/source4/torture/winbind/winbind.c
+++ b/source4/torture/winbind/winbind.c
@@ -294,7 +294,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_winbind_struct_init(suite));
torture_suite_add_suite(suite, torture_wbclient(suite));
pac_suite = torture_suite_create(ctx, "pac");