From: Hallvard Furuseth Date: Wed, 5 Apr 2006 14:15:34 +0000 (+0000) Subject: Fix for the previous ITS#4323 fix: for(expr;...) -> for(i=expr;...) X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4586b2f84c6328232bbd9aef639041a20ed2e0d;p=openldap Fix for the previous ITS#4323 fix: for(expr;...) -> for(i=expr;...) --- diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index d60542d12f..ce750a009b 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -441,7 +441,7 @@ end_of_loop:; if (gs.refs) ber_bvarray_free(gs.refs); if (gs.ctrls) { - for (gs.nctrls-1; i>=0; i--) { + for (i = gs.nctrls; --i >= 0; ) { if (!BER_BVISNULL( &gs.ctrls[i]->ldctl_value )) free(gs.ctrls[i]->ldctl_value.bv_val); free(gs.ctrls[i]);