From 8cb44830e0356804e21d9973382e0070f20b15be Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 15 Jul 2009 10:49:41 +0200 Subject: torture/smb2: fix crash bugs in the new SMB2-DIR tests metze --- source4/torture/smb2/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/smb2/dir.c b/source4/torture/smb2/dir.c index 79672ef03a..e090c31ec9 100644 --- a/source4/torture/smb2/dir.c +++ b/source4/torture/smb2/dir.c @@ -1083,7 +1083,7 @@ done: static bool test_file_index(struct torture_context *tctx, struct smb2_tree *tree) { - TALLOC_CTX *mem_ctx = talloc_new(mem_ctx); + TALLOC_CTX *mem_ctx = talloc_new(tctx); const int num_files = 100; int resume_index = 4; int i; @@ -1201,7 +1201,7 @@ done: static bool test_large_files(struct torture_context *tctx, struct smb2_tree *tree) { - TALLOC_CTX *mem_ctx = talloc_new(mem_ctx); + TALLOC_CTX *mem_ctx = talloc_new(tctx); const int num_files = 2000; int i, j = 1, retry_count = 0; struct file_elem files[2000] = {}; -- cgit