]> git.sur5r.net Git - openldap/commitdiff
cleanup objectclass detection
authorPierangelo Masarati <ando@openldap.org>
Mon, 27 Jan 2003 16:46:02 +0000 (16:46 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 27 Jan 2003 16:46:02 +0000 (16:46 +0000)
servers/slapd/back-ldap/compare.c
servers/slapd/back-meta/compare.c

index 9ab66e0cb329ceb4fd7ec6657498df04f81e992d..d8767c6f9142948a493b56ab12edce0d0f50348f 100644 (file)
@@ -100,8 +100,7 @@ ldap_back_compare(
        }
 #endif /* !ENABLE_REWRITE */
 
-       if ( ava->aa_desc->ad_type->sat_oid 
-                       == slap_schema.si_ad_objectClass->ad_type->sat_oid ) {
+       if ( ava->aa_desc == slap_schema.si_ad_objectClass ) {
                ldap_back_map(&li->oc_map, &ava->aa_desc->ad_cname, &mapped_oc,
                                BACKLDAP_MAP);
                if (mapped_oc.bv_val == NULL || mapped_oc.bv_val[0] == '\0') {
index 9c6d803783f89c628de0692ca8792875babe8b32..815e515cadd6633271948233b9429a8cf340ef15 100644 (file)
@@ -153,8 +153,7 @@ meta_back_compare(
                /*
                 * if attr is objectClass, try to remap the value
                 */
-               if ( ava->aa_desc->ad_type->sat_oid 
-                       == slap_schema.si_ad_objectClass->ad_type->sat_oid ) {
+               if ( ava->aa_desc == slap_schema.si_ad_objectClass ) {
                        ldap_back_map( &li->targets[ i ]->oc_map,
                                        &ava->aa_value, &mapped_value,
                                        BACKLDAP_MAP );