From: Sang Seok Lim Date: Wed, 27 Apr 2005 00:25:30 +0000 (+0000) Subject: Misc bug fix: component matching X-Git-Tag: OPENLDAP_AC_BP~784 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea0033e439ca72dd5fbcb728960218b4385a2496;p=openldap Misc bug fix: component matching --- diff --git a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c index b6bc5328b0..a8961d1bee 100644 --- a/servers/slapd/back-bdb/filterindex.c +++ b/servers/slapd/back-bdb/filterindex.c @@ -305,8 +305,12 @@ comp_equality_candidates ( return 0; ai = bdb_attr_mask( op->o_bd->be_private, mra->ma_desc ); - if( ai ) + if( ai ) { cr_list = ai->ai_cr; + } + else { + return 0; + } /* find a component reference to be indexed */ sat_syntax = ca->ca_ma_rule->smr_syntax; for ( cr = cr_list ; cr ; cr = cr->cr_next ) {