s4: torture: Add a TALLOC_CTX * to torture_smb2_read_init().
[kai/samba-autobuild/.git] / source4 / torture / smb2 / read.c
index c4469df7b090ba76b748f86c154364bcff1c3b9b..4bf3bb74be0a39ca2f05e6cf329975717f4d980c 100644 (file)
@@ -303,9 +303,9 @@ done:
 /* 
    basic testing of SMB2 read
 */
-struct torture_suite *torture_smb2_read_init(void)
+struct torture_suite *torture_smb2_read_init(TALLOC_CTX *ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "read");
+       struct torture_suite *suite = torture_suite_create(ctx, "read");
 
        torture_suite_add_1smb2_test(suite, "eof", test_read_eof);
        torture_suite_add_1smb2_test(suite, "position", test_read_position);