]> git.sur5r.net Git - openldap/commitdiff
Fix passing of state info to over_back_response
authorHoward Chu <hyc@openldap.org>
Wed, 17 Mar 2004 17:59:47 +0000 (17:59 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 17 Mar 2004 17:59:47 +0000 (17:59 +0000)
servers/slapd/backover.c

index d97225ac47c833d1b979a2c8acca75140242a4c7..fed40f1cfd0c90c20d5a88f65cb638c0622f73c7 100644 (file)
@@ -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 ) {