mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Add check missing from previous patch after talloc_strdup().
Jeremy.
This commit is contained in:
parent
1787c1dfc3
commit
a89b0ef53b
@ -170,6 +170,9 @@ static NTSTATUS check_parent_exists(TALLOC_CTX *ctx,
|
||||
/* Update dirpath. */
|
||||
TALLOC_FREE(*pp_dirpath);
|
||||
*pp_dirpath = talloc_strdup(ctx, parent_fname.base_name);
|
||||
if (!*pp_dirpath) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
DEBUG(5,("check_parent_exists: name "
|
||||
"= %s, dirpath = %s, "
|
||||
|
Loading…
Reference in New Issue
Block a user