Skip to content
Snippets Groups Projects
Commit b120d92b authored by Howard Chu's avatar Howard Chu
Browse files

ITS#3596 - fix overlay cleanup processing

parent b508cca2
No related branches found
No related tags found
No related merge requests found
......@@ -296,6 +296,20 @@ over_op_func(
if ( rc == SLAP_CB_CONTINUE ) {
rc = op_rc[ which ];
}
/* The underlying backend didn't handle the request, make sure
* overlay cleanup is processed.
*/
if ( rc == LDAP_UNWILLING_TO_PERFORM ) {
slap_callback *sc_next;
for ( ; op->o_callback && op->o_callback != cb.sc_next;
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 );
}
}
}
op->o_bd = be;
op->o_callback = cb.sc_next;
return rc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment