Lower down in this function new_values is assigned over el->values and is
filled in with the values of all the parsed DNs. Therefore it is the natural
talloc parent.
This will allow el->values to be allocated on tmp_ctx in the next commit for
a working area during the function call.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
for (i = 0; i < el->num_values; i++) {
struct parsed_dn *p = &pdn[i];
- ret = replmd_build_la_val(el->values, p->v, p->dsdb_dn,
+ ret = replmd_build_la_val(new_values, p->v, p->dsdb_dn,
&ac->our_invocation_id,
ac->seq_num, now);
if (ret != LDB_SUCCESS) {