From: Howard Chu Date: Sun, 2 Oct 2005 10:48:28 +0000 (+0000) Subject: Fix prev commit modrdn X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~333 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52e8aaea3c9b8d789e332a372b55412aba9199ce;p=openldap Fix prev commit modrdn --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 4a44057ee1..cbaaae19b4 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1057,6 +1057,11 @@ syncprov_matchops( Operation *op, opcookie *opc, int saveit ) a = attr_find( e->e_attrs, slap_schema.si_ad_entryUUID ); if ( a ) ber_dupbv_x( &opc->suuid, &a->a_nvals[0], op->o_tmpmemctx ); + } else if ( op->o_tag == LDAP_REQ_MODRDN && !saveit ) { + op->o_tmpfree( opc->sndn.bv_val, op->o_tmpmemctx ); + op->o_tmpfree( opc->sdn.bv_val, op->o_tmpmemctx ); + ber_dupbv_x( &opc->sdn, &e->e_name, op->o_tmpmemctx ); + ber_dupbv_x( &opc->sndn, &e->e_nname, op->o_tmpmemctx ); } ldap_pvt_thread_mutex_lock( &si->si_ops_mutex );