Commit f2e88c34 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

don't short circuit callback list

free self in case anything goes wrong
parent b6f4b3de
...@@ -269,8 +269,8 @@ cloak_search( Operation *op, SlapReply *rs ) ...@@ -269,8 +269,8 @@ cloak_search( Operation *op, SlapReply *rs )
sc = op->o_tmpcalloc( 1, sizeof( *sc ), op->o_tmpmemctx ); sc = op->o_tmpcalloc( 1, sizeof( *sc ), op->o_tmpmemctx );
sc->sc_response = cloak_search_cb; sc->sc_response = cloak_search_cb;
sc->sc_cleanup = NULL; sc->sc_cleanup = slap_freeself_cb;
sc->sc_next = NULL; sc->sc_next = op->o_callback;
sc->sc_private = ci; sc->sc_private = ci;
op->o_callback = sc; op->o_callback = sc;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment