From: Hallvard Furuseth Date: Fri, 17 Oct 2008 18:02:09 +0000 (+0000) Subject: Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.) X-Git-Tag: ACLCHECK_0~1238 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=05bbe7833bc70bc58c2723ca4d5551d00c6145d2;p=openldap Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.) Warning cleanup: signed meets unsigned. --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index a5ac722314..aa2d87983c 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -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++ )