From: Howard Chu Date: Tue, 12 Jun 2012 23:23:54 +0000 (-0700) Subject: TS#7303 tweak X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ccffd1608532318edc3b7f4db3d0f003054c48cd;p=openldap TS#7303 tweak --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index a822564c55..d30d7b9f2e 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -1253,7 +1253,7 @@ static int search_candidates( if( op->ors_deref & LDAP_DEREF_SEARCHING ) { rc = search_aliases( op, rs, e, txn, ids, scopes, stack ); - if ( BDB_IDL_IS_ZERO( ids )) + if ( BDB_IDL_IS_ZERO( ids ) && rc == LDAP_SUCCESS ) rc = bdb_dn2idl( op, txn, &e->e_nname, BEI(e), ids, stack ); } else { rc = bdb_dn2idl( op, txn, &e->e_nname, BEI(e), ids, stack );