]> git.sur5r.net Git - openldap/commitdiff
Better handling of computed filters
authorHoward Chu <hyc@openldap.org>
Tue, 29 Apr 2003 21:51:23 +0000 (21:51 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 29 Apr 2003 21:51:23 +0000 (21:51 +0000)
servers/slapd/back-bdb/filterindex.c

index ebfc607eccf0d6344c7295f93735536e69ddc0ac..969329aa7e6cdf2460abdcd2407ef670aa1df442 100644 (file)
@@ -231,10 +231,12 @@ list_candidates(
        Debug( LDAP_DEBUG_FILTER, "=> bdb_list_candidates 0x%x\n", ftype, 0, 0 );
 #endif
 
-       /* Copy so we can propagate pre-computed IDLs */
-       BDB_IDL_CPY( save, ids );
-
        for ( f = flist; f != NULL; f = f->f_next ) {
+               /* Ignore undefined filters */
+               if ( f->f_choice == SLAPD_FILTER_COMPUTED &&
+                    f->f_result == SLAPD_COMPARE_UNDEFINED ) {
+                       continue;
+               }
                rc = bdb_filter_candidates( op, f, save, tmp,
                        save+BDB_IDL_UM_SIZE );