1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

r1394: Const fix.

Jeremy.
(This used to be commit 9ac4945012e0bd54519b8c81d4c36e88cea28fce)
This commit is contained in:
Jeremy Allison 2004-07-08 06:44:54 +00:00 committed by Gerald (Jerry) Carter
parent 10f0c34a2a
commit c54a86b969

View File

@ -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);
}