From: Jeremy Allison Date: Thu, 18 Aug 2022 04:50:19 +0000 (-0700) Subject: s3: smbd: In create_junction() don't read hostname from parse_dfs_path_strict(). X-Git-Tag: talloc-2.4.0~1248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2780509a3c861215e64db8ccb6d8db5fa7ac7c5d;p=thirdparty%2Fsamba.git s3: smbd: In create_junction() don't read hostname from parse_dfs_path_strict(). It isn't used anymore inside create_junction(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index 90611802738..f5de0541833 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -1470,7 +1470,6 @@ bool create_junction(TALLOC_CTX *ctx, const struct loadparm_substitution *lp_sub = loadparm_s3_global_substitution(); int snum; - char *hostname = NULL; char *servicename = NULL; char *reqpath = NULL; NTSTATUS status; @@ -1478,7 +1477,7 @@ bool create_junction(TALLOC_CTX *ctx, status = parse_dfs_path_strict( ctx, dfs_path, - &hostname, + NULL, &servicename, &reqpath); if (!NT_STATUS_IS_OK(status)) {