From ab75cb6e0466434e8fef708b44d308e6c3386e5d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 18 Apr 2003 05:56:12 +0000 Subject: [PATCH] Fix prev commit, broke extended filters --- servers/slapd/back-bdb/filterindex.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index 93db2904ad..ae75380ab9 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -146,7 +146,6 @@ bdb_filter_candidates( { struct bdb_info *bdb = (struct bdb_info *) be->be_private; BDB_IDL_ALL( bdb, ids ); } - break; case LDAP_FILTER_AND: @@ -176,6 +175,10 @@ bdb_filter_candidates( Debug( LDAP_DEBUG_FILTER, "\tUNKNOWN %lu\n", (unsigned long) f->f_choice, 0, 0 ); #endif + /* Must not return NULL, otherwise extended filters break */ + { struct bdb_info *bdb = (struct bdb_info *) be->be_private; + BDB_IDL_ALL( bdb, ids ); + } } #ifdef NEW_LOGGING -- 2.47.2