summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2017-04-24 15:30:14 -0700
committerJeremy Allison <jra@samba.org>2017-05-05 15:52:12 +0200
commit6264d214010ce9ebee153b2b87347b5891fd535f (patch)
tree453ab2a9a09c25e0490bdaaef941fbff98ddf9e5 /source4/torture/smb2
parent3f5ad6f01486e88bbf06cbd961cacbb728cfa5d0 (diff)
downloadsamba-6264d214010ce9ebee153b2b87347b5891fd535f.tar.gz
s4: tortute: Add a TALLOC_CTX * to torture_smb2_ioctl_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/ioctl.c4
-rw-r--r--source4/torture/smb2/smb2.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/smb2/ioctl.c b/source4/torture/smb2/ioctl.c
index 54a36a86036..53476fa3b17 100644
--- a/source4/torture/smb2/ioctl.c
+++ b/source4/torture/smb2/ioctl.c
@@ -6188,9 +6188,9 @@ static bool test_ioctl_dup_extents_dest_lck(struct torture_context *tctx,
/*
* testing of SMB2 ioctls
*/
-struct torture_suite *torture_smb2_ioctl_init(void)
+struct torture_suite *torture_smb2_ioctl_init(TALLOC_CTX *ctx)
{
- struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "ioctl");
+ struct torture_suite *suite = torture_suite_create(ctx, "ioctl");
torture_suite_add_1smb2_test(suite, "shadow_copy",
test_ioctl_get_shadow_copy);
diff --git a/source4/torture/smb2/smb2.c b/source4/torture/smb2/smb2.c
index 28222675c59..23a6df0b7e0 100644
--- a/source4/torture/smb2/smb2.c
+++ b/source4/torture/smb2/smb2.c
@@ -168,7 +168,7 @@ NTSTATUS torture_smb2_init(TALLOC_CTX *ctx)
torture_suite_add_suite(suite, torture_smb2_oplocks_init());
torture_suite_add_suite(suite, torture_smb2_kernel_oplocks_init());
torture_suite_add_suite(suite, torture_smb2_streams_init());
- torture_suite_add_suite(suite, torture_smb2_ioctl_init());
+ torture_suite_add_suite(suite, torture_smb2_ioctl_init(suite));
torture_suite_add_suite(suite, torture_smb2_rename_init());
torture_suite_add_1smb2_test(suite, "bench-oplock", test_smb2_bench_oplock);
torture_suite_add_1smb2_test(suite, "hold-oplock", test_smb2_hold_oplock);