1
0
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:
Jeremy Allison 2010-09-10 23:33:18 -07:00
parent 1787c1dfc3
commit a89b0ef53b

View File

@ -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, "