From: Howard Chu Date: Fri, 18 Apr 2003 04:44:46 +0000 (+0000) Subject: Fix undefined filters X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~322 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3baffe7cf27be8f4c928464869df58829f9d191c;p=openldap Fix undefined filters --- diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index 3b0ed135a3..bab0fbadf1 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -50,7 +50,7 @@ bdb_filter_candidates( ID *tmp, ID *stack ) { - int rc = -1; + int rc = 0; #ifdef NEW_LOGGING LDAP_LOG ( INDEX, ENTRY, "=> bdb_filter_candidates\n", 0, 0, 0 ); #else @@ -59,7 +59,6 @@ bdb_filter_candidates( switch ( f->f_choice ) { case SLAPD_FILTER_COMPUTED: - rc = 0; break; case SLAPD_FILTER_DN_ONE: @@ -150,7 +149,6 @@ bdb_filter_candidates( { struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private; BDB_IDL_ALL( bdb, ids ); } - rc = 0; break; case LDAP_FILTER_AND: