mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Fixed insertion of the overlay_remove callback (SLAP_CONFIG_DELETE)
This commit is contained in:
parent
f86e0cd8dc
commit
7c97c036c8
1 changed files with 6 additions and 2 deletions
|
|
@ -1214,8 +1214,12 @@ overlay_remove( BackendDB *be, slap_overinst *on, Operation *op )
|
|||
rm_cb->sc_private = (void*) rm_ctx;
|
||||
|
||||
/* Append callback to the end of the list */
|
||||
for ( cb = op->o_callback; cb->sc_next; cb = cb->sc_next );
|
||||
cb->sc_next = rm_cb;
|
||||
if ( !op->o_callback ) {
|
||||
op->o_callback = rm_cb;
|
||||
} else {
|
||||
for ( cb = op->o_callback; cb->sc_next; cb = cb->sc_next );
|
||||
cb->sc_next = rm_cb;
|
||||
}
|
||||
}
|
||||
#endif /* SLAP_CONFIG_DELETE */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue