diff options
author | Jeremy Allison <jra@samba.org> | 2017-04-24 15:33:53 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-05-05 15:52:13 +0200 |
commit | 123973e684cda747d8ab68c52d31196af77f769d (patch) | |
tree | 1726f267632193b1ffdae9e64ec1fcd98dfe32a1 /source4 | |
parent | 248035114b51a9b1d26282736b0ceea90319442f (diff) | |
download | samba-123973e684cda747d8ab68c52d31196af77f769d.tar.gz |
s4: torture: Add a TALLOC_CTX * to torture_smb2_notify_init().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/notify.c | 4 | ||||
-rw-r--r-- | source4/torture/smb2/smb2.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/smb2/notify.c b/source4/torture/smb2/notify.c index 90f5ad9a633..9fc856cd1a4 100644 --- a/source4/torture/smb2/notify.c +++ b/source4/torture/smb2/notify.c @@ -2357,9 +2357,9 @@ static bool torture_smb2_notify_rmdir4(struct torture_context *torture, /* basic testing of SMB2 change notify */ -struct torture_suite *torture_smb2_notify_init(void) +struct torture_suite *torture_smb2_notify_init(TALLOC_CTX *ctx) { - struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "notify"); + struct torture_suite *suite = torture_suite_create(ctx, "notify"); torture_suite_add_1smb2_test(suite, "valid-req", test_valid_request); torture_suite_add_1smb2_test(suite, "tcon", torture_smb2_notify_tcon); diff --git a/source4/torture/smb2/smb2.c b/source4/torture/smb2/smb2.c index cf785b8dcbf..c493811edf0 100644 --- a/source4/torture/smb2/smb2.c +++ b/source4/torture/smb2/smb2.c @@ -154,7 +154,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx) torture_suite_add_suite(suite, torture_smb2_read_init()); torture_suite_add_suite(suite, torture_smb2_create_init(suite)); torture_suite_add_suite(suite, torture_smb2_acls_init(suite)); - torture_suite_add_suite(suite, torture_smb2_notify_init()); + torture_suite_add_suite(suite, torture_smb2_notify_init(suite)); torture_suite_add_suite(suite, torture_smb2_notify_disabled_init()); torture_suite_add_suite(suite, torture_smb2_durable_open_init(suite)); torture_suite_add_suite(suite, |