ITS#7797 Fix segfault in slapo-collect

This commit is contained in:
Ondřej Kuzník 2014-09-23 21:05:08 +01:00 committed by Howard Chu
parent c46c6ecfa4
commit 508f4158bc

View File

@ -401,8 +401,8 @@ collect_response( Operation *op, SlapReply *rs )
* current search result * current search result
*/ */
if ( vals ) { if ( vals ) {
attr_merge( rs->sr_entry, ci->ci_ad[idx], attr_merge_normalize( rs->sr_entry, ci->ci_ad[idx],
vals, NULL ); vals, op->o_tmpmemctx );
ber_bvarray_free_x( vals, op->o_tmpmemctx ); ber_bvarray_free_x( vals, op->o_tmpmemctx );
} }
} }