diff options
author | Jeremy Allison <jra@samba.org> | 2017-04-24 14:41:26 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-05 15:52:11 +0200 |
commit | e7e56bcc72cb4e4372f03a66e62bebb3005c633b (patch) | |
tree | 2dd6b30563cfe3669e6262506c821c9366e540aa /source4/torture/krb5 | |
parent | 1d6667381cfe568be2a0731225a6fed332343dc8 (diff) | |
download | samba-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/krb5')
-rw-r--r-- | source4/torture/krb5/kdc-heimdal.c | 4 | ||||
-rw-r--r-- | source4/torture/krb5/kdc-mit.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/krb5/kdc-heimdal.c b/source4/torture/krb5/kdc-heimdal.c index b6c811724bc..2cf972cea6f 100644 --- a/source4/torture/krb5/kdc-heimdal.c +++ b/source4/torture/krb5/kdc-heimdal.c @@ -687,7 +687,7 @@ static bool torture_krb5_as_req_aes_rc4(struct torture_context *tctx) NTSTATUS torture_krb5_init(TALLOC_CTX *ctx) { - struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "krb5"); + struct torture_suite *suite = torture_suite_create(ctx, "krb5"); struct torture_suite *kdc_suite = torture_suite_create(suite, "kdc"); suite->description = talloc_strdup(suite, "Kerberos tests"); kdc_suite->description = talloc_strdup(kdc_suite, "Kerberos KDC tests"); @@ -719,6 +719,6 @@ NTSTATUS torture_krb5_init(TALLOC_CTX *ctx) torture_suite_add_suite(kdc_suite, torture_krb5_canon(kdc_suite)); torture_suite_add_suite(suite, kdc_suite); - torture_register_suite(suite); + torture_register_suite(ctx, suite); return NT_STATUS_OK; } diff --git a/source4/torture/krb5/kdc-mit.c b/source4/torture/krb5/kdc-mit.c index 29cb93d9e62..77fa8c34a95 100644 --- a/source4/torture/krb5/kdc-mit.c +++ b/source4/torture/krb5/kdc-mit.c @@ -749,7 +749,7 @@ static bool torture_krb5_as_req_aes_rc4(struct torture_context *tctx) NTSTATUS torture_krb5_init(TALLOC_CTX *ctx) { struct torture_suite *suite = - torture_suite_create(talloc_autofree_context(), "krb5"); + torture_suite_create(ctx, "krb5"); struct torture_suite *kdc_suite = torture_suite_create(suite, "kdc"); suite->description = talloc_strdup(suite, "Kerberos tests"); kdc_suite->description = talloc_strdup(kdc_suite, "Kerberos KDC tests"); @@ -788,7 +788,7 @@ NTSTATUS torture_krb5_init(TALLOC_CTX *ctx) torture_suite_add_suite(suite, kdc_suite); - torture_register_suite(suite); + torture_register_suite(ctx, suite); return NT_STATUS_OK; } |