]> git.sur5r.net Git - openldap/commitdiff
...
authorPierangelo Masarati <ando@openldap.org>
Thu, 17 May 2007 13:57:20 +0000 (13:57 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 17 May 2007 13:57:20 +0000 (13:57 +0000)
servers/slapd/mr.c

index 49266e76d9e08be236f2fed82fec6c35d185198b..8a49f4f6c5751b987f37c9c21fec7c4c28dc9563 100644 (file)
@@ -396,13 +396,16 @@ matching_rule_use_init( void )
        return( 0 );
 }
 
-int mr_usable_with_at(
-       MatchingRule *mr,
-       AttributeType *at )
+int
+mr_usable_with_at(
+       MatchingRule    *mr,
+       AttributeType   *at )
 {
-       if( mr->smr_usage & SLAP_MR_EXT && ( 
+       if ( ( mr->smr_usage & SLAP_MR_EXT ) && (
                mr->smr_syntax == at->sat_syntax ||
-               mr == at->sat_equality || mr == at->sat_approx ) )
+               mr == at->sat_equality ||
+               mr == at->sat_approx ||
+               syn_is_sup( at->sat_syntax, mr->smr_syntax ) ) )
        {
                return 1;
        }