]> git.sur5r.net Git - openldap/commitdiff
ITS#6103 send response even if abandoned
authorHoward Chu <hyc@openldap.org>
Mon, 11 May 2009 04:29:21 +0000 (04:29 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 11 May 2009 04:29:21 +0000 (04:29 +0000)
servers/slapd/backglue.c

index b3ca5d48322e997f3a384d0736eb455339b88b80..b7bff32748e4029029f57192a522b27dd96e548b 100644 (file)
@@ -535,17 +535,18 @@ end_of_loop:;
 
                break;
        }
+
+       op->o_callback = cb.sc_next;
        if ( op->o_abandon ) {
                rs->sr_err = SLAPD_ABANDON;
        } else {
-               op->o_callback = cb.sc_next;
                rs->sr_err = gs.err;
                rs->sr_matched = gs.matched;
                rs->sr_ref = gs.refs;
-               rs->sr_ctrls = gs.ctrls;
-
-               send_ldap_result( op, rs );
        }
+       rs->sr_ctrls = gs.ctrls;
+
+       send_ldap_result( op, rs );
 
        op->o_bd = b0;
        op->o_bd->bd_info = bi0;