Wastes a talloc/free.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
const char *dfs_path_in,
char **pp_path_out)
{
- char *hostname = NULL;
- char *servicename = NULL;
char *reqpath = NULL;
NTSTATUS status;
conn,
dfs_path_in,
!conn->sconn->using_smb2,
- &hostname,
- &servicename,
+ NULL, /* hostname */
+ NULL, /* servicename */
&reqpath);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
- /*
- * Caller doesn't care about hostname
- * or servicename.
- */
- TALLOC_FREE(hostname);
- TALLOC_FREE(servicename);
-
/*
* If parse_dfs_path fell back to a local path
* after skipping hostname or servicename, ensure