]> git.sur5r.net Git - openldap/commitdiff
Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 17 Oct 2008 18:02:09 +0000 (18:02 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 17 Oct 2008 18:02:09 +0000 (18:02 +0000)
Warning cleanup: signed meets unsigned.

servers/slapd/back-ldap/bind.c

index a5ac722314e201cf4e23bee0622054e807116965..aa2d87983cef14f9786a8ef86e1e07d8fe553f8b 100644 (file)
@@ -2613,7 +2613,7 @@ ldap_back_controls_add(
                goto done;
        }
 
-       assert( j1 + j1 <= sizeof( c )/sizeof(LDAPControl) );
+       assert( j1 + j2 <= (int) (sizeof( c )/sizeof( c[0] )) );
 
        if ( op->o_ctrls ) {
                for ( n = 0; op->o_ctrls[ n ]; n++ )