Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.)

Warning cleanup: signed meets unsigned.
This commit is contained in:
Hallvard Furuseth 2008-10-17 18:02:09 +00:00
parent e3bc5b64c6
commit 05bbe7833b

View 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++ )