s3: smbd: In create_junction() don't read hostname from parse_dfs_path_strict().
[vlendec/samba-autobuild/.git] / 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)) {