replmd: Use replmd_set_la_val() when adding new links
commit7649652b636fcc6997377a94ee7b4bc8fec4ffbb
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 27 Sep 2017 03:23:29 +0000 (27 16:23 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 20 Oct 2017 02:05:21 +0000 (20 04:05 +0200)
treef70b5583aab4b9c5017c7c805fccb3d3a6438c60
parentf183dcfad56c7eb9b188dcfbf4d4b7a2598ef08c
replmd: Use replmd_set_la_val() when adding new links

replmd_set_la_val() and replmd_build_la_val() are almost identical. When
we were processing the replicated link attributes we were calling one
function if the link was new, and a different one if the link existed.
I think we should be able to get away with using replmd_set_la_val() in
both cases.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13055

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c