From 44a75a03c0d8bf0190df0820d0a5cb1ea0776813 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 1 Apr 2006 18:59:26 +0000 Subject: [PATCH] allow overlays to inject an abandon without returning SLAPD_ABANDON --- servers/slapd/result.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/result.c b/servers/slapd/result.c index f14e17972d..c82f8f651a 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -434,7 +434,7 @@ send_ldap_response( int rc = LDAP_SUCCESS; long bytes; - if ( rs->sr_err == SLAPD_ABANDON ) { + if ( rs->sr_err == SLAPD_ABANDON || op->o_abandon ) { rc = SLAPD_ABANDON; goto clean2; } @@ -643,7 +643,7 @@ slap_send_ldap_result( Operation *op, SlapReply *rs ) rs->sr_type = REP_RESULT; /* Propagate Abandons so that cleanup callbacks can be processed */ - if ( rs->sr_err == SLAPD_ABANDON ) + if ( rs->sr_err == SLAPD_ABANDON || op->o_abandon ) goto abandon; assert( !LDAP_API_ERROR( rs->sr_err ) ); -- 2.39.5