From: Luke Howard Date: Wed, 14 May 2003 05:29:46 +0000 (+0000) Subject: Fix content rule validation code -- don't use validation result variable X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~140 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eed45f454c07acf916525370a8cae242c9354be3;p=openldap Fix content rule validation code -- don't use validation result variable as an iterator! --- diff --git a/servers/slapd/schema_check.c b/servers/slapd/schema_check.c index ee3067afba..ced207024e 100644 --- a/servers/slapd/schema_check.c +++ b/servers/slapd/schema_check.c @@ -440,10 +440,12 @@ entry_schema_check( int k; if( cr ) { + int j; + k = -1; if( cr->scr_auxiliaries ) { - for( ; cr->scr_auxiliaries[k]; k++ ) { - if( cr->scr_auxiliaries[k] == oc ) { + for( j = 0; cr->scr_auxiliaries[j]; j++ ) { + if( cr->scr_auxiliaries[j] == oc ) { k = 0; break; }