diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/msdfs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/msdfs.c b/source3/smbd/msdfs.c index a5cdd8130d..c24cdcc708 100644 --- a/source3/smbd/msdfs.c +++ b/source3/smbd/msdfs.c @@ -865,9 +865,13 @@ int setup_dfs_referral(connection_struct *orig_conn, char *pathname, int max_ref /* create the referral depeding on version */ DEBUG(10,("max_referral_level :%d\n",max_referral_level)); - if(max_referral_level<2 || max_referral_level>3) { + + if (max_referral_level < 2) { max_referral_level = 2; } + if (max_referral_level > 3) { + max_referral_level = 3; + } switch(max_referral_level) { case 2: |