]> git.sur5r.net Git - openldap/commitdiff
Fix last commit.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 31 Aug 2002 19:17:54 +0000 (19:17 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 31 Aug 2002 19:17:54 +0000 (19:17 +0000)
Also add uses where mr is the attribute's equality rule.

servers/slapd/mr.c

index 7c73be6214ed133047d9f3d8cf446571e376bec4..ed86a183d3b7510d70ebf53e13fe13b9169ca408 100644 (file)
@@ -355,7 +355,9 @@ matching_rule_use_init( void )
 
                at = NULL;
                for ( at_start( &at ); at; at_next( &at ) ) {
-                       if( mr->smr_syntax == at->sat_syntax ) {
+                       if( mr->smr_syntax == at->sat_syntax ||
+                               mr == at->sat_equality )
+                       {
                                ldap_charray_add( &applies_oids, at->sat_cname.bv_val );
                        }
                }