]> git.sur5r.net Git - openldap/commitdiff
ITS#7930 additional fix
authorhyc <hyc@openldap.org>
Sat, 6 Sep 2014 08:49:32 +0000 (09:49 +0100)
committerhyc <hyc@openldap.org>
Sat, 6 Sep 2014 08:49:32 +0000 (09:49 +0100)
bypass cleanup handlers for suppressed search result msgs

servers/slapd/back-ldap/chain.c

index 14a93abcb6349f930ab71a5f7cfd8aab5d98c076..4ff6b7e23a5ac425a4b4a79759dd4e44d532e208 100644 (file)
@@ -322,6 +322,10 @@ ldap_chain_cb_search_response( Operation *op, SlapReply *rs )
 
                /* back-ldap tried to send result */
                lb->lb_status = LDAP_CH_RES;
+               /* don't let other callbacks run, this isn't
+                * the real result for this op.
+                */
+               op->o_callback->sc_next = NULL;
        }
 
        return 0;