From: Pierangelo Masarati Date: Sat, 8 Nov 2008 10:39:45 +0000 (+0000) Subject: exactly one ID can match (ITS#5791; further fix previous commit) X-Git-Tag: ACLCHECK_0~1144 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1dd88a8b11431506738aff321d69013861e06a82;p=openldap exactly one ID can match (ITS#5791; further fix previous commit) --- diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index 31fd91b342..49900c881d 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -720,10 +720,14 @@ equality_candidates( if ( ava->aa_desc == slap_schema.si_ad_entryDN ) { EntryInfo *ei = NULL; rc = bdb_cache_find_ndn( op, rtxn, &ava->aa_value, &ei ); - if ( rc == LDAP_SUCCESS ) - bdb_idl_insert( ids, ei->bei_id ); - if ( ei ) + if ( rc == LDAP_SUCCESS ) { + /* exactly one ID can match */ + ids[0] = 1; + ids[1] = ei->bei_id; + } + if ( ei ) { bdb_cache_entryinfo_unlock( ei ); + } return rc; }