mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-17 20:34:08 -05:00
allow overlays to inject an abandon without returning SLAPD_ABANDON
This commit is contained in:
parent
46cb141185
commit
44a75a03c0
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue