From 826de9641739e87ddf53f67a7314dc0caad5f06a Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 10 Mar 2004 02:44:10 +0000 Subject: [PATCH] Minor cleanup --- servers/slapd/backglue.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index 763c1d2010..d8c13e9690 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -315,9 +315,7 @@ glue_back_search ( Operation *op, SlapReply *rs ) * check for abandon */ if (op->o_abandon) { - op->o_req_dn = dn; - op->o_req_ndn = ndn; - goto done; + goto end_of_loop; } op->o_bd = gi->n[i].be; @@ -367,14 +365,15 @@ end_of_loop:; break; } - op->o_callback = cb.sc_next; - rs->sr_err = gs.err; - rs->sr_matched = gs.matched; - rs->sr_ref = gs.refs; + if ( !op->o_abandon ) { + op->o_callback = cb.sc_next; + rs->sr_err = gs.err; + rs->sr_matched = gs.matched; + rs->sr_ref = gs.refs; - send_ldap_result( op, rs ); + send_ldap_result( op, rs ); + } -done: op->o_bd = b0; if (gs.matched) free (gs.matched); -- 2.39.5