mirror of
https://github.com/samba-team/samba.git
synced 2025-08-21 09:49:28 +03:00
s3: lib: Fix talloc heirarcy error in parent_smb_fname().
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>
(cherry picked from commit c500d99e2f
)
This commit is contained in:
committed by
Karolin Seeger
parent
5d4bbaff8b
commit
0b75c27236
@ -337,7 +337,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;
|
||||
|
Reference in New Issue
Block a user