]> git.sur5r.net Git - openldap/commitdiff
don't short circuit callback list
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 17 Mar 2009 17:42:59 +0000 (17:42 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 17 Mar 2009 17:42:59 +0000 (17:42 +0000)
free self in case anything goes wrong

contrib/slapd-modules/cloak/cloak.c

index 5e4f11d0e5be403f390a2111da77d2d65cdfa9bc..8d29a1579cdd78410c7ce7dc3765ad903f7e560e 100644 (file)
@@ -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;