]> git.sur5r.net Git - openldap/commitdiff
ITS#7587 fix double-free
authorHoward Chu <hyc@openldap.org>
Tue, 18 Mar 2014 18:47:31 +0000 (11:47 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 1 Apr 2014 23:56:02 +0000 (16:56 -0700)
Related to bb3e14ddba025229816e0bc5bfd0228fbaed6985 (ITS#6254)

servers/slapd/overlays/translucent.c

index d9715cbf719382112bd3e456791873ac3515d003..d39fe38535b011b8dd8b7110158722efbfa4a199 100644 (file)
@@ -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 );