]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/translucent.c
Fix prev commit
[openldap] / servers / slapd / overlays / translucent.c
index eee8a6d40ce4a1d6c222ab631c4195bf39fe26d7..43d7f45cbfe337dcd5b24b438e6b17aaf07b9335 100644 (file)
@@ -208,7 +208,8 @@ static int translucent_delete(Operation *op, SlapReply *rs) {
 static int
 translucent_tag_cb( Operation *op, SlapReply *rs )
 {
-       op->o_tag = (ber_tag_t)op->o_callback->sc_private;
+       op->o_tag = LDAP_REQ_MODIFY;
+       op->orm_modlist = op->o_callback->sc_private;
        rs->sr_tag = slap_req2res( op->o_tag );
 
        return SLAP_CB_CONTINUE;
@@ -400,7 +401,7 @@ release:
        glue_parent(&nop);
 
        cb.sc_response = translucent_tag_cb;
-       cb.sc_private = (void *)LDAP_REQ_MODIFY;
+       cb.sc_private = op->orm_modlist;
        cb.sc_next = nop.o_callback;
        nop.o_callback = &cb;
        rc = on->on_info->oi_orig->bi_op_add(&nop, &nrs);
@@ -690,6 +691,7 @@ static int translucent_db_init(BackendDB *be) {
        ov->info = backend_info("ldap");
 
        if(!ov->info) {
+               ch_free( ov );
                Debug(LDAP_DEBUG_ANY, "translucent: backend_info failed!\n", 0, 0, 0);
                return(1);
        }