From: Howard Chu Date: Sat, 14 Nov 2009 21:53:06 +0000 (+0000) Subject: Cleanup for #6373 X-Git-Tag: ACLCHECK_0~124 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=67edd75e48b656c00c842fe989809cd6219dd90f;p=openldap Cleanup for #6373 --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 1a7e975808..ec1e836e94 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1369,7 +1369,6 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on ) SlapReply rsm = { 0 }; slap_callback cb = {0}; BackendDB be; - struct berval ctxdn; #ifdef CHECK_CSN Syntax *syn = slap_schema.si_ad_contextCSN->ad_type->sat_syntax; @@ -1396,12 +1395,9 @@ syncprov_checkpoint( Operation *op, SlapReply *rs, slap_overinst *on ) if ( SLAP_GLUE_SUBORDINATE( op->o_bd )) { be = *on->on_info->oi_origdb; opm.o_bd = &be; - ctxdn = be.be_nsuffix[0]; - } else { - ctxdn = si->si_contextdn; } - opm.o_req_dn = ctxdn; - opm.o_req_ndn = ctxdn; + opm.o_req_dn = si->si_contextdn; + opm.o_req_ndn = si->si_contextdn; opm.o_bd->bd_info = on->on_info->oi_orig; opm.o_managedsait = SLAP_CONTROL_NONCRITICAL; opm.o_no_schema_check = 1;