The branch, master has been updated
       via  8cb44830e0356804e21d9973382e0070f20b15be (commit)
      from  5927ca7067a0ead65c00042a62545b0d940f2b2a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 8cb44830e0356804e21d9973382e0070f20b15be
Author: Stefan Metzmacher <me...@samba.org>
Date:   Wed Jul 15 10:49:41 2009 +0200

    torture/smb2: fix crash bugs in the new SMB2-DIR tests
    
    metze

-----------------------------------------------------------------------

Summary of changes:
 source4/torture/smb2/dir.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/smb2/dir.c b/source4/torture/smb2/dir.c
index 79672ef..e090c31 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] = {};


-- 
Samba Shared Repository

Reply via email to