summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/dir.c4
1 files changed, 2 insertions, 2 deletions
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] = {};