]> git.sur5r.net Git - openldap/commitdiff
ITS#6707: Free the presentlist (if any) before connecting.
authorRein Tollevik <rein@openldap.org>
Mon, 15 Nov 2010 14:15:46 +0000 (14:15 +0000)
committerRein Tollevik <rein@openldap.org>
Mon, 15 Nov 2010 14:15:46 +0000 (14:15 +0000)
servers/slapd/syncrepl.c

index 5ffc6f0f840650605d2bdc1e4ca2ddfd5b9615e8..a164e56d563357f7b4f0e58f7218c59790f811fc 100644 (file)
@@ -1424,6 +1424,11 @@ do_syncrepl(
                si->si_refreshDelete = 0;
                si->si_refreshPresent = 0;
 
+               if ( si->si_presentlist ) {
+                   avl_free( si->si_presentlist, ch_free );
+                   si->si_presentlist = NULL;
+               }
+
                /* use main DB when retrieving contextCSN */
                op->o_bd = si->si_wbe;
                op->o_dn = op->o_bd->be_rootdn;