From eed45f454c07acf916525370a8cae242c9354be3 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Wed, 14 May 2003 05:29:46 +0000 Subject: [PATCH] Fix content rule validation code -- don't use validation result variable as an iterator! --- servers/slapd/schema_check.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.5