From: Howard Chu Date: Thu, 28 Apr 2005 16:45:52 +0000 (+0000) Subject: Mroe abandon checks for ITS#3671 X-Git-Tag: OPENLDAP_AC_BP~774 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df22b333a56c248978a4e43157041fc723bf632b;p=openldap Mroe abandon checks for ITS#3671 --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 6d7ca76f43..9b5fba66a0 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -708,7 +708,6 @@ syncprov_qplay( Operation *op, slap_overinst *on, syncops *so ) opc.son = on; op->o_bd->bd_info = (BackendInfo *)on->on_info; for (sr = so->s_res; sr; sr=srnext) { - int rc; srnext = sr->s_next; opc.sdn = sr->s_dn; opc.sndn = sr->s_ndn; @@ -757,6 +756,9 @@ syncprov_sendresp( Operation *op, opcookie *opc, syncops *so, Entry **e, int mod Operation sop = *so->s_op; Opheader ohdr; + if ( so->s_op->o_abandon ) + return SLAPD_ABANDON; + ohdr = *sop.o_hdr; sop.o_hdr = &ohdr; sop.o_tmpmemctx = op->o_tmpmemctx;