]> git.sur5r.net Git - openldap/commitdiff
Misc bug fix: component matching
authorSang Seok Lim <slim@openldap.org>
Wed, 27 Apr 2005 00:25:30 +0000 (00:25 +0000)
committerSang Seok Lim <slim@openldap.org>
Wed, 27 Apr 2005 00:25:30 +0000 (00:25 +0000)
servers/slapd/back-bdb/filterindex.c

index b6bc5328b0a0fce2e4011962969582c9b6803ca7..a8961d1bee925d1c7834e95bc4bf87241bdf1d66 100644 (file)
@@ -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 ) {