]> git.sur5r.net Git - openldap/commitdiff
allow overlays to inject an abandon without returning SLAPD_ABANDON
authorPierangelo Masarati <ando@openldap.org>
Sat, 1 Apr 2006 18:59:26 +0000 (18:59 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 1 Apr 2006 18:59:26 +0000 (18:59 +0000)
servers/slapd/result.c

index f14e17972de2230e9eb878926ae672b44ec8ca39..c82f8f651a6307135ede81557b076bc8e9e8c7eb 100644 (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 ) );