s4:dsdb/password_hash: move ldb_msg_add_empty() calls to update_final_msg()
authorStefan Metzmacher <metze@samba.org>
Tue, 31 May 2016 08:39:23 +0000 (10:39 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 27 Jun 2016 03:00:17 +0000 (05:00 +0200)
commit8262ec92f7c3a8fd4e5e2bcb1c5af270f7574540
tree6a8f0e1616d38c2952386c26adfb088d156cb401
parent8ca1c02163901cea29aac1428607742318433ed3
s4:dsdb/password_hash: move ldb_msg_add_empty() calls to update_final_msg()

We should only replace attributes when we're asked to do so.
Currently that's always the case, but that will change soon.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/password_hash.c