From c54a86b969d8c20e3388f843b6cc41519f313f75 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 8 Jul 2004 06:44:54 +0000 Subject: r1394: Const fix. Jeremy. (This used to be commit 9ac4945012e0bd54519b8c81d4c36e88cea28fce) --- source3/passdb/pdb_get_set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/passdb/pdb_get_set.c') diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c index 4abb951d7b..0877e8b1f4 100644 --- a/source3/passdb/pdb_get_set.c +++ b/source3/passdb/pdb_get_set.c @@ -1173,13 +1173,13 @@ BOOL pdb_set_plaintext_passwd (SAM_ACCOUNT *sampass, const char *plaintext) uchar new_lanman_p16[LM_HASH_LEN]; uchar new_nt_p16[NT_HASH_LEN]; uchar current_ntpw_copy[NT_HASH_LEN]; - uchar *current_ntpw = NULL; + const uchar *current_ntpw; if (!sampass || !plaintext) return False; /* Store the current password for history purposes. */ - current_ntpw = (uint8 *)pdb_get_nt_passwd(sampass); + current_ntpw = pdb_get_nt_passwd(sampass); if (current_ntpw) { memcpy (current_ntpw_copy, current_ntpw, NT_HASH_LEN); } -- cgit