summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/msdfs/msdfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c
index 2df5fcf4f5..2ac7bda175 100644
--- a/source3/msdfs/msdfs.c
+++ b/source3/msdfs/msdfs.c
@@ -481,6 +481,12 @@ BOOL get_referred_path(char *pathname, struct junction_map *jucn,
return False;
}
+ if (!lp_msdfs_root(snum)) {
+ DEBUG(3,("get_referred_path: .%s. in dfs path %s is not a dfs root.\n",
+ dp.servicename, pathname));
+ goto out;
+ }
+
/*
* Self referrals are tested with a anonymous IPC connection and
* a GET_DFS_REFERRAL call to \\server\share. (which means dp.reqpath[0] points
@@ -496,12 +502,6 @@ BOOL get_referred_path(char *pathname, struct junction_map *jucn,
if (!create_conn_struct(conn, snum, conn_path))
return False;
- if (!lp_msdfs_root(SNUM(conn))) {
- DEBUG(3,("get_referred_path: .%s. in dfs path %s is not a dfs root.\n",
- dp.servicename, pathname));
- goto out;
- }
-
if (*lp_msdfs_proxy(snum) != '\0') {
struct referral* ref;
jucn->referral_count = 1;