summaryrefslogtreecommitdiff
path: root/source4/torture/rap
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/rap
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/rap')
-rw-r--r--source4/torture/rap/rap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index 043154b4621..054e01141e0 100644
--- a/source4/torture/rap/rap.c
+++ b/source4/torture/rap/rap.c
@@ -243,7 +243,7 @@ bool torture_rap_scan(struct torture_context *torture, struct smbcli_state *cli)
NTSTATUS torture_rap_init(TALLOC_CTX *ctx)
{
- struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "rap");
+ struct torture_suite *suite = torture_suite_create(ctx, "rap");
struct torture_suite *suite_basic = torture_suite_create(suite, "basic");
torture_suite_add_suite(suite, suite_basic);
@@ -269,7 +269,7 @@ NTSTATUS torture_rap_init(TALLOC_CTX *ctx)
suite->description = talloc_strdup(suite,
"Remote Administration Protocol tests");
- torture_register_suite(suite);
+ torture_register_suite(ctx, suite);
return NT_STATUS_OK;
}