diff options
author | Jeremy Allison <jra@samba.org> | 2004-07-08 06:44:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:10 -0500 |
commit | 9ac4945012e0bd54519b8c81d4c36e88cea28fce (patch) | |
tree | 30f7a1047054cbdefa2c7255fe6c87196af027d7 | |
parent | ac846420d0ef2c60d2dc71319b24401c73699249 (diff) | |
download | samba-9ac4945012e0bd54519b8c81d4c36e88cea28fce.tar.gz samba-9ac4945012e0bd54519b8c81d4c36e88cea28fce.tar.xz samba-9ac4945012e0bd54519b8c81d4c36e88cea28fce.zip |
r1394: Const fix.
Jeremy.
-rw-r--r-- | source/passdb/pdb_get_set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/passdb/pdb_get_set.c b/source/passdb/pdb_get_set.c index 4abb951d7b1..0877e8b1f42 100644 --- a/source/passdb/pdb_get_set.c +++ b/source/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); } |