summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-12-13 10:33:04 +1100
committerAndrew Bartlett <abartlet@samba.org>2013-01-10 18:46:22 +1100
commitb9fbce20613952ead92dde3981a57f6d825c0584 (patch)
tree42668aac4c0dd188010d243a18d59e0e84930b0e
parent26bae894f2ae898c51535dda14060ecf4786c6ec (diff)
downloadsamba-b9fbce20613952ead92dde3981a57f6d825c0584.tar.gz
passdb: Add discard_const_p() to pdb_samba_dsdb
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/passdb/pdb_samba_dsdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_samba_dsdb.c b/source3/passdb/pdb_samba_dsdb.c
index 2552fb9125c..0ff2e0a6bd0 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");