]> git.sur5r.net Git - openldap/commitdiff
ITS#1837, one-level searches on leaf entries
authorHoward Chu <hyc@openldap.org>
Thu, 6 Jun 2002 11:27:52 +0000 (11:27 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 6 Jun 2002 11:27:52 +0000 (11:27 +0000)
servers/slapd/back-bdb/filterindex.c

index bd8adc0bdc8c2deb688b4adf0a0c59f0ee3757c5..a09bc1e3f4b578dcec590e8befcd484512c263a7 100644 (file)
@@ -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: