]> git.sur5r.net Git - openldap/commitdiff
ITS#5557 plug leak from skipping over rset value
authorHoward Chu <hyc@openldap.org>
Fri, 13 Jun 2008 23:06:50 +0000 (23:06 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 13 Jun 2008 23:06:50 +0000 (23:06 +0000)
servers/slapd/sets.c

index d7c56fa9ed4b41f2726b389f8ef3cb853f4949a2..d8de70044de0f95cc4427a3d0dec7a809e492c03 100644 (file)
@@ -200,6 +200,7 @@ slap_set_join(
                                                        cp->set_op->o_tmpfree( rset[ i ].bv_val, cp->set_op->o_tmpmemctx );
                                                        rset[ i ] = rset[ --rlast ];
                                                        BER_BVZERO( &rset[ rlast ] );
+                                                       i--;
                                                }
                                                exists = 1;
                                                break;