From b4586b2f84c6328232bbd9aef639041a20ed2e0d Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 5 Apr 2006 14:15:34 +0000 Subject: [PATCH] Fix for the previous ITS#4323 fix: for(expr;...) -> for(i=expr;...) --- servers/slapd/backglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.39.5