diff options
author | Jeremy Allison <jra@samba.org> | 2017-04-24 15:19:12 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-05 15:52:12 +0200 |
commit | b871d5fdaeced5d8f779f5b832e7f8f8579cdbd7 (patch) | |
tree | a5ffb9f93b799e59dbe6ca8d69f31f29232cb3ad /source4/torture/smb2 | |
parent | a039a4634f7aabee220d6023c49a5c2024d954a4 (diff) | |
download | samba-b871d5fdaeced5d8f779f5b832e7f8f8579cdbd7.tar.gz |
s4: torture: Add a TALLOC_CTX * to torture_smb2_crediting_init().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r-- | source4/torture/smb2/credits.c | 4 | ||||
-rw-r--r-- | source4/torture/smb2/smb2.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/smb2/credits.c b/source4/torture/smb2/credits.c index 43550c370e4..b06bae72050 100644 --- a/source4/torture/smb2/credits.c +++ b/source4/torture/smb2/credits.c @@ -254,9 +254,9 @@ done: return ret; } -struct torture_suite *torture_smb2_crediting_init(void) +struct torture_suite *torture_smb2_crediting_init(TALLOC_CTX *ctx) { - struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "credits"); + struct torture_suite *suite = torture_suite_create(ctx, "credits"); torture_suite_add_1smb2_test(suite, "session_setup_credits_granted", test_session_setup_credits_granted); torture_suite_add_1smb2_test(suite, "single_req_credits_granted", test_single_req_credits_granted); diff --git a/source4/torture/smb2/smb2.c b/source4/torture/smb2/smb2.c index dd3ad0f8cc5..b9997dd22e8 100644 --- a/source4/torture/smb2/smb2.c +++ b/source4/torture/smb2/smb2.c @@ -174,7 +174,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx) torture_suite_add_suite(suite, torture_smb2_replay_init()); torture_suite_add_simple_test(suite, "dosmode", torture_smb2_dosmode); torture_suite_add_simple_test(suite, "maxfid", torture_smb2_maxfid); - torture_suite_add_suite(suite, torture_smb2_crediting_init()); + torture_suite_add_suite(suite, torture_smb2_crediting_init(suite)); torture_suite_add_suite(suite, torture_smb2_doc_init()); |