From ccffd1608532318edc3b7f4db3d0f003054c48cd Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 12 Jun 2012 16:23:54 -0700 Subject: [PATCH] TS#7303 tweak --- servers/slapd/back-bdb/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5