From 052aef59601068ccc63e403d84d70c0d5a6bc9ab Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 18 Mar 2014 11:47:31 -0700 Subject: [PATCH] ITS#7587 fix double-free Related to bb3e14ddba025229816e0bc5bfd0228fbaed6985 (ITS#6254) --- servers/slapd/overlays/translucent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.39.5