From: Howard Chu Date: Mon, 14 Nov 2005 19:38:48 +0000 (+0000) Subject: Fix for syncprov checkpoint CSN disposal X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a1830a3cd09a6e1383c0199bea30669f9bdb01b2;p=openldap Fix for syncprov checkpoint CSN disposal --- diff --git a/servers/slapd/ctxcsn.c b/servers/slapd/ctxcsn.c index 87d8cbc371..90e16f6b3e 100644 --- a/servers/slapd/ctxcsn.c +++ b/servers/slapd/ctxcsn.c @@ -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;