replmd: Get rid of duplicated replmd_build_la_val() code
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 28 Sep 2017 02:48:58 +0000 (15:48 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 20 Oct 2017 02:05:21 +0000 (04:05 +0200)
commitcd936a725cb7f651fef99dac59569947a31aaa70
tree7bd254915a6b110f797fbee26599fbdbed44dacd
parent4cb260f8c06edd3ab1f9a52867fc4d8124ebb0b5
replmd: Get rid of duplicated replmd_build_la_val() code

replmd_build_la_val() and replmd_set_la_val() are pretty much identical.
Keep the replmd_build_la_val() API (as it makes it clearer we're
creating a new linked attribute), but replace the code with a call to
replmd_set_la_val().

This isn't required for any bug fix, but is just a general tidy-up to
avoid code duplication.

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