Ensure dirpath can never be NULL.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11535
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Oct 1 08:58:36 CEST 2015 on sn-devel-104
status = map_nt_error_from_unix(errno);
goto err;
}
+ /* dirpath must exist. */
+ dirpath = talloc_strdup(ctx,"");
+ if (dirpath == NULL) {
+ status = NT_STATUS_NO_MEMORY;
+ goto err;
+ }
DEBUG(5, ("conversion finished %s -> %s\n",
orig_path,
smb_fname->base_name));