]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#1991 - referrals with sarch base == target (wasn't sure at first,
authorHoward Chu <hyc@openldap.org>
Thu, 29 Aug 2002 08:43:23 +0000 (08:43 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 29 Aug 2002 08:43:23 +0000 (08:43 +0000)
but see diff -r1.6 -r1.7 and it's obvious.)

servers/slapd/referral.c

index a836657fe1bc18ea74429b2ba47401b545e66d9d..c5c82c9a80a3393b529a463388d520e83c01fd2b 100644 (file)
@@ -81,7 +81,7 @@ static char * referral_dn_muck(
                        return NULL;
                }
 
-               if( dn_match( &nbaseDN, &nrefDN ) == 0 ) {
+               if( dn_match( &nbaseDN, &nrefDN ) ) {
                        ch_free( nrefDN.bv_val );
                        ch_free( nbaseDN.bv_val );
                        return ntargetDN.bv_val;