diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-12-13 10:33:04 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-01-10 18:46:22 +1100 |
commit | b9fbce20613952ead92dde3981a57f6d825c0584 (patch) | |
tree | 42668aac4c0dd188010d243a18d59e0e84930b0e /source3 | |
parent | 26bae894f2ae898c51535dda14060ecf4786c6ec (diff) | |
download | samba-b9fbce20613952ead92dde3981a57f6d825c0584.tar.gz samba-b9fbce20613952ead92dde3981a57f6d825c0584.tar.bz2 samba-b9fbce20613952ead92dde3981a57f6d825c0584.zip |
passdb: Add discard_const_p() to pdb_samba_dsdb
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_samba_dsdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_samba_dsdb.c b/source3/passdb/pdb_samba_dsdb.c index 2552fb9125..0ff2e0a6bd 100644 --- a/source3/passdb/pdb_samba_dsdb.c +++ b/source3/passdb/pdb_samba_dsdb.c @@ -384,7 +384,7 @@ static int pdb_samba_dsdb_replace_by_sam(struct pdb_samba_dsdb_state *state, bool changed_history = false; if (need_update(sam, PDB_LMPASSWD)) { struct ldb_val val; - val.data = pdb_get_lanman_passwd(sam); + val.data = discard_const_p(uint8_t, pdb_get_lanman_passwd(sam)); if (!val.data) { samdb_msg_add_delete(state->ldb, msg, msg, "dBCSPwd"); @@ -396,7 +396,7 @@ static int pdb_samba_dsdb_replace_by_sam(struct pdb_samba_dsdb_state *state, } if (need_update(sam, PDB_NTPASSWD)) { struct ldb_val val; - val.data = pdb_get_nt_passwd(sam); + val.data = discard_const_p(uint8_t, pdb_get_nt_passwd(sam)); if (!val.data) { samdb_msg_add_delete(state->ldb, msg, msg, "unicodePwd"); |