From: Howard Chu Date: Tue, 18 Mar 2014 18:47:31 +0000 (-0700) Subject: ITS#7587 fix double-free X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=052aef59601068ccc63e403d84d70c0d5a6bc9ab;p=openldap ITS#7587 fix double-free Related to bb3e14ddba025229816e0bc5bfd0228fbaed6985 (ITS#6254) --- diff --git a/servers/slapd/overlays/translucent.c b/servers/slapd/overlays/translucent.c index d9715cbf71..d39fe38535 100644 --- a/servers/slapd/overlays/translucent.c +++ b/servers/slapd/overlays/translucent.c @@ -1109,7 +1109,8 @@ static int translucent_search(Operation *op, SlapReply *rs) { filter2bv_x( op, fr, &op->ors_filterstr ); } rc = ov->db.bd_info->bi_op_search(op, rs); - op->ors_attrs = tc.attrs; + if ( op->ors_attrs == slap_anlist_all_attributes ) + op->ors_attrs = tc.attrs; op->o_bd = tc.db; if ( fl ) { op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );