From 3304d125c4500ea0d8684e48b090f918f408d2a7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 6 Jun 2002 11:27:52 +0000 Subject: [PATCH] ITS#1837, one-level searches on leaf entries --- servers/slapd/back-bdb/filterindex.c | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.39.5