diff options
Diffstat (limited to 'source/smbd/msdfs.c')
-rw-r--r-- | source/smbd/msdfs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/smbd/msdfs.c b/source/smbd/msdfs.c index a5cdd8130d1..c24cdcc7086 100644 --- a/source/smbd/msdfs.c +++ b/source/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: |