]> git.sur5r.net Git - openldap/commitdiff
read entry needs o_bd for ACLs
authorPierangelo Masarati <ando@openldap.org>
Sat, 14 Oct 2006 00:59:22 +0000 (00:59 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 14 Oct 2006 00:59:22 +0000 (00:59 +0000)
servers/slapd/result.c

index 65e83b7232b7da11ec578376560314736051569c..6d453e582b8ea9c18fd0985c8957178b26500d6b 100644 (file)
@@ -1505,14 +1505,15 @@ int slap_read_controls(
                op->o_preread_attrs : op->o_postread_attrs; 
 
        bv.bv_len = entry_flatsize( rs->sr_entry, 0 );
-       bv.bv_val = op->o_tmpalloc(bv.bv_len, op->o_tmpmemctx );
+       bv.bv_val = op->o_tmpalloc( bv.bv_len, op->o_tmpmemctx );
 
        ber_init2( ber, &bv, LBER_USE_DER );
        ber_set_option( ber, LBER_OPT_BER_MEMCTX, &op->o_tmpmemctx );
 
        /* create new operation */
        myop = *op;
-       myop.o_bd = NULL;
+       /* FIXME: o_bd needed for ACL */
+       myop.o_bd = op->o_bd;
        myop.o_res_ber = ber;
        myop.o_callback = NULL;
        myop.ors_slimit = 1;