allow overlays to inject an abandon without returning SLAPD_ABANDON

This commit is contained in:
Pierangelo Masarati 2006-04-01 18:59:26 +00:00
parent 46cb141185
commit 44a75a03c0

View file

@ -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 ) );