]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schema_prep.c
trace illegal condition in backsql_strfcat
[openldap] / servers / slapd / schema_prep.c
index 8da0c25153a541277306a2a63150114c85a1f0ce..05571d65fb3ab0c521cd6753dbec41b9c8182a60 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++ ) {