]> git.sur5r.net Git - openldap/commitdiff
ITS#8752 make sure all cleanups are called in overlay_op_walk
authorHoward Chu <hyc@openldap.org>
Fri, 13 Oct 2017 16:22:34 +0000 (17:22 +0100)
committerHoward Chu <hyc@openldap.org>
Fri, 13 Oct 2017 16:28:38 +0000 (17:28 +0100)
servers/slapd/backover.c

index a749fba9195e0f241ae3848763ba1c78162a82df..cc13d77c28543ed808481fecc9881fc429903764 100644 (file)
@@ -716,8 +716,7 @@ int overlay_op_walk(
        if ( rc == LDAP_UNWILLING_TO_PERFORM ) {
                slap_callback *sc_next;
 cleanup:
-               for ( ; op->o_callback && op->o_callback->sc_response !=
-                       over_back_response; op->o_callback = sc_next ) {
+               for ( ; op->o_callback; op->o_callback = sc_next ) {
                        sc_next = op->o_callback->sc_next;
                        if ( op->o_callback->sc_cleanup ) {
                                op->o_callback->sc_cleanup( op, rs );