From: Nadezhda Ivanova Date: Tue, 9 Feb 2016 13:26:38 +0000 (+0200) Subject: ITS#8303 Fixed an assertion error during test022 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26f88817f68c605871bfcf006c477fdd2ae43974;p=openldap ITS#8303 Fixed an assertion error during test022 The error was introduced with commit 6cafdfa8d82134f78e68325c4b9c10dd37935d7a --- diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index c76b9d48e7..c94b67cbc8 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -255,21 +255,6 @@ over_back_response ( Operation *op, SlapReply *rs ) return rc; } -static int -over_back_response_cleanup(Operation *op, SlapReply *rs) -{ - if (rs->sr_type == REP_RESULT) { - if (op->o_callback != NULL) { - slap_callback *sc = op->o_callback; - op->o_callback = sc->sc_next; - - free( sc ); - } - } - - return 0; -} - static int over_access_allowed( Operation *op, @@ -758,7 +743,7 @@ over_op_func( db.be_flags |= SLAP_DBFLAG_OVERLAY; op->o_bd = &db; } - cb->sc_cleanup = over_back_response_cleanup; + cb->sc_cleanup = NULL; cb->sc_response = over_back_response; cb->sc_writewait = NULL; cb->sc_next = op->o_callback;