]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9308 - ensure "i" is initialized
authorQuanah Gibson-Mount <quanah@openldap.org>
Wed, 5 Aug 2020 23:06:49 +0000 (23:06 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 5 Aug 2020 23:07:57 +0000 (23:07 +0000)
contrib/slapd-modules/allowed/allowed.c

index 1010f1154570fdb08aaf433dbe26e27ef09347cd..5f5b88570d859b84ef1903f085c13aac4f4309a5 100644 (file)
@@ -338,7 +338,7 @@ do_oc:;
 
                ObjectClass     *oc;
 
-               for ( oc_start( &oc ); oc != NULL; oc_next( &oc ) ) {
+               for ( i = 0, oc_start( &oc ); oc != NULL; oc_next( &oc ) ) {
                        /* we can only add AUXILIARY objectClasses */
                        if ( oc->soc_kind != LDAP_SCHEMA_AUXILIARY ) {
                                continue;