From 073d1c1964985ce69a35780c1eee91a76bc1400b Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 25 Mar 2004 14:41:56 +0000 Subject: jra's patch -- fix anonymous self referral code to check that a share is an msdfs root first (This used to be commit 641c2acd92b358fab4441071df411adbbd934ae8) --- source3/msdfs/msdfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source3') 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; -- cgit