]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: lib: Fix talloc heirarcy error in parent_smb_fname().
authorJeremy Allison <jra@samba.org>
Tue, 1 Jun 2021 20:27:47 +0000 (13:27 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 2 Jun 2021 05:39:30 +0000 (05:39 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14722

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/filename_util.c

index f535ea1f088d780e468dcdf77ab0e29946160a8c..1d4206c33003faff84423aec59ea6146262ce58c 100644 (file)
@@ -320,7 +320,7 @@ bool parent_smb_fname(TALLOC_CTX *mem_ctx,
        }
        TALLOC_FREE(name->base_name);
 
-       name->base_name = talloc_strdup(mem_ctx, p);
+       name->base_name = talloc_strdup(name, p);
        if (name == NULL) {
                TALLOC_FREE(frame);
                return false;