]> git.sur5r.net Git - openldap/commitdiff
Fix for syncprov checkpoint CSN disposal
authorHoward Chu <hyc@openldap.org>
Mon, 14 Nov 2005 19:38:48 +0000 (19:38 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 14 Nov 2005 19:38:48 +0000 (19:38 +0000)
servers/slapd/ctxcsn.c

index 87d8cbc3717464a32af500e8d61551df2216d694..90e16f6b3ec31e5c90395debae03ec851d17ae1e 100644 (file)
@@ -166,7 +166,7 @@ slap_queue_csn(
        ldap_pvt_thread_mutex_lock( op->o_bd->be_pcl_mutexp );
 
        ber_dupbv( &pending->ce_csn, csn );
-       op->o_csn = pending->ce_csn;
+       ber_dupbv_x( &op->o_csn, &pending->ce_csn, op->o_tmpmemctx );
        pending->ce_connid = op->o_connid;
        pending->ce_opid = op->o_opid;
        pending->ce_state = SLAP_CSN_PENDING;