X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fresult.c;h=ae6a42dd0f5cd61cdcf04eefb0b5683b02046e60;hb=e48f72c1b5a7ce571c7ced749aed473d20b32526;hp=65e83b7232b7da11ec578376560314736051569c;hpb=d6d31af4f08548dd6e27629fafc3c6db8b2e3ba9;p=openldap diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 65e83b7232..ae6a42dd0f 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2006 The OpenLDAP Foundation. + * Copyright 1998-2007 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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;