]> git.sur5r.net Git - openldap/commitdiff
Fix content rule validation code -- don't use validation result variable
authorLuke Howard <lukeh@openldap.org>
Wed, 14 May 2003 05:29:46 +0000 (05:29 +0000)
committerLuke Howard <lukeh@openldap.org>
Wed, 14 May 2003 05:29:46 +0000 (05:29 +0000)
as an iterator!

servers/slapd/schema_check.c

index ee3067afbab82b607508c4a3ef759c0d9db63d03..ced207024e145ef317bd34cef1f4519983e68d17 100644 (file)
@@ -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;
                                                        }