From: Howard Chu Date: Thu, 6 Jun 2002 11:27:52 +0000 (+0000) Subject: ITS#1837, one-level searches on leaf entries X-Git-Tag: OPENLDAP_REL_ENG_2_MP~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3304d125c4500ea0d8684e48b090f918f408d2a7;p=openldap ITS#1837, one-level searches on leaf entries --- diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index bd8adc0bdc..a09bc1e3f4 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -65,6 +65,10 @@ bdb_filter_candidates( Debug( LDAP_DEBUG_FILTER, "\tDN ONE\n", 0, 0, 0 ); #endif rc = bdb_dn2idl( be, f->f_dn, DN_ONE_PREFIX, ids ); + if( rc == DB_NOTFOUND ) { + BDB_IDL_ZERO( ids ); + rc = 0; + } break; case SLAPD_FILTER_DN_SUBTREE: