X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Foc.c;h=7163f1aa5f025eb2504e9e251c5563cd548230e6;hb=fd810bb35ebcae78d9e9393af51873f1b404ee02;hp=e17ccac5b121763b6d1185b491d9fde9ecf69fb4;hpb=c1bf5ab4852dd52bfff9facccadf112ba4778f1e;p=openldap diff --git a/servers/slapd/oc.c b/servers/slapd/oc.c index e17ccac5b1..7163f1aa5f 100644 --- a/servers/slapd/oc.c +++ b/servers/slapd/oc.c @@ -17,8 +17,8 @@ #include "ldap_pvt.h" int is_object_subclass( - ObjectClass *sub, - ObjectClass *sup ) + ObjectClass *sup, + ObjectClass *sub ) { int i; @@ -26,19 +26,19 @@ int is_object_subclass( #if 1 Debug( LDAP_DEBUG_TRACE, "is_object_subclass(%s,%s) %d\n", - sub->soc_oid, sup->soc_oid, sup == sub ); + sup->soc_oid, sub->soc_oid, sup == sub ); #endif if( sup == sub ) { return 1; } - if( sup->soc_sups == NULL ) { + if( sub->soc_sups == NULL ) { return 0; } - for( i=0; sup->soc_sups[i] != NULL; i++ ) { - if( is_object_subclass( sub, sup->soc_sups[i] ) ) { + for( i=0; sub->soc_sups[i] != NULL; i++ ) { + if( is_object_subclass( sup, sub->soc_sups[i] ) ) { return 1; } }