From 05bbe7833bc70bc58c2723ca4d5551d00c6145d2 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 17 Oct 2008 18:02:09 +0000 Subject: [PATCH] Fix typo in assertion: j1 + j1 -> j1 + j2. (Not a crasher, just wrong test.) Warning cleanup: signed meets unsigned. --- servers/slapd/back-ldap/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ ) -- 2.39.5