s4 dsdb/repl_meta_data: allocate new extended DNs during ADD on a better context
commit72e89a5d9df21a4f06e74fbbebc0675e2eaafbd8
authorAndrew Bartlett <abartlet@samba.org>
Wed, 15 May 2019 02:47:53 +0000 (15 14:47 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jun 2019 10:21:59 +0000 (13 10:21 +0000)
tree70188bd39a9d829986bcb70d075022d5fe592477
parent77de9567d92ed6d5c37ed611d5fc41df825527ee
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>
(cherry picked from commit 4aa9924310287ff3b36618496fa6c707c615ad4c)
source4/dsdb/samdb/ldb_modules/repl_meta_data.c