From: Ondřej Kuzník Date: Tue, 23 Sep 2014 20:05:08 +0000 (+0100) Subject: ITS#7797 Fix segfault in slapo-collect X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=508f4158bca8f3c40a91ea188f43ca53f231c01f;p=openldap ITS#7797 Fix segfault in slapo-collect --- diff --git a/servers/slapd/overlays/collect.c b/servers/slapd/overlays/collect.c index 6bc8fa07a7..3705f6de6d 100644 --- a/servers/slapd/overlays/collect.c +++ b/servers/slapd/overlays/collect.c @@ -401,8 +401,8 @@ collect_response( Operation *op, SlapReply *rs ) * current search result */ if ( vals ) { - attr_merge( rs->sr_entry, ci->ci_ad[idx], - vals, NULL ); + attr_merge_normalize( rs->sr_entry, ci->ci_ad[idx], + vals, op->o_tmpmemctx ); ber_bvarray_free_x( vals, op->o_tmpmemctx ); } }