]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 8 Sep 2014 16:34:05 +0000 (11:34 -0500)
bypass cleanup handlers for suppressed search result msgs

servers/slapd/back-ldap/chain.c

index bd7cb7c552bad0b220d54f297fef2dc35331c49d..9b0994215cc635d1f13671c13a2657a7026c4f9c 100644 (file)
@@ -321,6 +321,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;