From: Howard Chu Date: Wed, 17 Mar 2004 17:59:47 +0000 (+0000) Subject: Fix passing of state info to over_back_response X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~243 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=829bc9969daa744ce14b72312c4b9d3375d79904;p=openldap Fix passing of state info to over_back_response --- diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index d97225ac47..fed40f1cfd 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -130,7 +130,7 @@ over_db_destroy( static int over_back_response ( Operation *op, SlapReply *rs ) { - slap_overinfo *oi = (slap_overinfo *) op->o_bd->bd_info; + slap_overinfo *oi = op->o_callback->sc_private; slap_overinst *on = oi->oi_list; int rc = SLAP_CB_CONTINUE; BackendDB *be = op->o_bd, db = *op->o_bd; @@ -167,6 +167,7 @@ over_op_func( op->o_bd = &db; cb.sc_next = op->o_callback; + cb.sc_private = oi; op->o_callback = &cb; for (; on; on=on->on_next ) {