summaryrefslogtreecommitdiff
path: root/source4/torture/dns
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-04-24 14:41:26 -0700
committerJeremy Allison <jra@samba.org>2017-05-05 15:52:11 +0200
commite7e56bcc72cb4e4372f03a66e62bebb3005c633b (patch)
tree2dd6b30563cfe3669e6262506c821c9366e540aa /source4/torture/dns
parent1d6667381cfe568be2a0731225a6fed332343dc8 (diff)
downloadsamba-e7e56bcc72cb4e4372f03a66e62bebb3005c633b.tar.gz
s4: torture: Change torture_register_suite() to add a TALLOC_CTX *.
Change callers to use the passed in TALLOC_CTX * instead of talloc_autofree_context(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source4/torture/dns')
-rw-r--r--source4/torture/dns/dlz_bind9.c5
-rw-r--r--source4/torture/dns/internal_dns.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/source4/torture/dns/dlz_bind9.c b/source4/torture/dns/dlz_bind9.c
index 7a01ec0ec28..f16d16ec061 100644
--- a/source4/torture/dns/dlz_bind9.c
+++ b/source4/torture/dns/dlz_bind9.c
@@ -1084,12 +1084,11 @@ NTSTATUS torture_bind_dns_init(TALLOC_CTX *);
NTSTATUS torture_bind_dns_init(TALLOC_CTX *ctx)
{
struct torture_suite *suite;
- TALLOC_CTX *mem_ctx = talloc_autofree_context();
/* register DNS related test cases */
- suite = dlz_bind9_suite(mem_ctx);
+ suite = dlz_bind9_suite(ctx);
if (!suite) return NT_STATUS_NO_MEMORY;
- torture_register_suite(suite);
+ torture_register_suite(ctx, suite);
return NT_STATUS_OK;
}
diff --git a/source4/torture/dns/internal_dns.c b/source4/torture/dns/internal_dns.c
index ac234e1b38b..2ccc7ed5aa1 100644
--- a/source4/torture/dns/internal_dns.c
+++ b/source4/torture/dns/internal_dns.c
@@ -179,12 +179,11 @@ NTSTATUS torture_internal_dns_init(TALLOC_CTX *);
NTSTATUS torture_internal_dns_init(TALLOC_CTX *ctx)
{
struct torture_suite *suite;
- TALLOC_CTX *mem_ctx = talloc_autofree_context();
/* register internal DNS torture test cases */
- suite = internal_dns_suite(mem_ctx);
+ suite = internal_dns_suite(ctx);
if (!suite) return NT_STATUS_NO_MEMORY;
- torture_register_suite(suite);
+ torture_register_suite(ctx, suite);
return NT_STATUS_OK;
}