s4 dsdb/repl_meta_data: allocate new extended DNs during ADD on a better context
commit4aa9924310287ff3b36618496fa6c707c615ad4c
authorAndrew Bartlett <abartlet@samba.org>
Wed, 15 May 2019 02:47:53 +0000 (15 14:47 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 May 2019 04:03:37 +0000 (15 04:03 +0000)
treef757db4aece592db085945c59586fd651e8c0e00
parent5841b164b2c57e1389b5486be4ccef8eb47f6892
s4 dsdb/repl_meta_data: allocate new extended DNs during ADD on a better context

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>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c