]> git.sur5r.net Git - openldap/commitdiff
Fix subclassing indexing
authorKurt Zeilenga <kurt@openldap.org>
Fri, 30 Aug 2002 03:00:11 +0000 (03:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 30 Aug 2002 03:00:11 +0000 (03:00 +0000)
servers/slapd/schema_prep.c

index a6833eefd986e726ff7ce79e80b0350b7436baaf..c940d3f8578d694768342aab819e50595e19546b 100644 (file)
@@ -150,10 +150,13 @@ static int objectSubClassIndexer(
 #endif
        }
 
+       ocvalues[i].bv_val = NULL;
+       ocvalues[i].bv_len = 0;
+
        /* expand values */
        for( i=0; i<noc; i++ ) {
                int j;
-               ObjectClass *oc = oc_bvfind( &values[i] );
+               ObjectClass *oc = oc_bvfind( &ocvalues[i] );
                if( oc == NULL || oc->soc_sups == NULL ) continue;
                
                for( j=0; oc->soc_sups[j] != NULL; j++ ) {