summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-15 10:49:41 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-15 10:53:13 +0200
commit8cb44830e0356804e21d9973382e0070f20b15be (patch)
tree72897ba23cc648bcec4c29deeb40a5c4b29d5595 /source4/torture/smb2
parent5927ca7067a0ead65c00042a62545b0d940f2b2a (diff)
downloadsamba-8cb44830e0356804e21d9973382e0070f20b15be.tar.gz
samba-8cb44830e0356804e21d9973382e0070f20b15be.tar.bz2
samba-8cb44830e0356804e21d9973382e0070f20b15be.zip
torture/smb2: fix crash bugs in the new SMB2-DIR tests
metze
Diffstat (limited to 'source4/torture/smb2')
-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] = {};