From: Howard Chu Date: Thu, 29 Aug 2002 08:43:23 +0000 (+0000) Subject: Fix ITS#1991 - referrals with sarch base == target (wasn't sure at first, X-Git-Tag: NO_SLAP_OP_BLOCKS~1129 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d36fd5a3ed407b0a53004d1431f1669222138b4;p=openldap Fix ITS#1991 - referrals with sarch base == target (wasn't sure at first, but see diff -r1.6 -r1.7 and it's obvious.) --- diff --git a/servers/slapd/referral.c b/servers/slapd/referral.c index a836657fe1..c5c82c9a80 100644 --- a/servers/slapd/referral.c +++ b/servers/slapd/referral.c @@ -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;