]> git.sur5r.net Git - openldap/commitdiff
Fix for the previous ITS#4323 fix: for(expr;...) -> for(i=expr;...)
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 5 Apr 2006 14:15:34 +0000 (14:15 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 5 Apr 2006 14:15:34 +0000 (14:15 +0000)
servers/slapd/backglue.c

index d60542d12fcaa95ead9178824c1978842ed30827..ce750a009bd6c1a8d4a63ed86839815f65490779 100644 (file)
@@ -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]);