From: Howard Chu Date: Fri, 13 Oct 2017 16:22:34 +0000 (+0100) Subject: ITS#8752 make sure all cleanups are called in overlay_op_walk X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b0ad788b8aaad7d5e75827dacd4bbba203ae69ff;p=openldap ITS#8752 make sure all cleanups are called in overlay_op_walk --- diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index a749fba919..cc13d77c28 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -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 );