Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -269,8 +269,8 @@ cloak_search( Operation *op, SlapReply *rs )
sc = op->o_tmpcalloc( 1, sizeof( *sc ), op->o_tmpmemctx );
sc->sc_response = cloak_search_cb;
sc->sc_cleanup = NULL;
sc->sc_next = NULL;
sc->sc_cleanup = slap_freeself_cb;
sc->sc_next = op->o_callback;
sc->sc_private = ci;
op->o_callback = sc;
......
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