]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In create_junction() don't read hostname from parse_dfs_path_strict().
authorJeremy Allison <jra@samba.org>
Thu, 18 Aug 2022 04:50:19 +0000 (21:50 -0700)
committerJeremy Allison <jra@samba.org>
Sun, 28 Aug 2022 19:59:28 +0000 (19:59 +0000)
It isn't used anymore inside create_junction().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/msdfs.c

index 906118027381dff895f6a63456a6204a78c2acb9..f5de0541833a2b85d31f92817906d3ceb25259e9 100644 (file)
@@ -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)) {