summaryrefslogtreecommitdiff
path: root/source/passdb/pdb_get_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/passdb/pdb_get_set.c')
-rw-r--r--source/passdb/pdb_get_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/passdb/pdb_get_set.c b/source/passdb/pdb_get_set.c
index 4b59b5fdf95..99afac133ac 100644
--- a/source/passdb/pdb_get_set.c
+++ b/source/passdb/pdb_get_set.c
@@ -1195,7 +1195,7 @@ BOOL pdb_set_plaintext_passwd (SAM_ACCOUNT *sampass, const char *plaintext)
/* We need to make sure we don't have a race condition here - the
account policy history length can change between when the pw_history
was first loaded into the SAM_ACCOUNT struct and now.... JRA. */
- pwhistory = (uchar *)pdb_get_pw_history(sampass, &current_history_len);
+ pwhistory = CONST_DISCARD(uchar *, pdb_get_pw_history(sampass, &current_history_len));
if (current_history_len != pwHistLen) {
/* After closing and reopening SAM_ACCOUNT the history