use WINPR_MD5_DIGEST_LENGTH in stead of magic number for hash array

This commit is contained in:
Zhu Qun-Ying 2020-04-23 15:01:58 -07:00 committed by akallabeth
parent 8cc9b09ba1
commit a1e421c93d
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ out_fail:
BOOL NTOWFv2W(LPWSTR Password, UINT32 PasswordLength, LPWSTR User, UINT32 UserLength, LPWSTR Domain, BOOL NTOWFv2W(LPWSTR Password, UINT32 PasswordLength, LPWSTR User, UINT32 UserLength, LPWSTR Domain,
UINT32 DomainLength, BYTE* NtHash) UINT32 DomainLength, BYTE* NtHash)
{ {
BYTE NtHashV1[16]; BYTE NtHashV1[WINPR_MD5_DIGEST_LENGTH];
if ((!User) || (!Password) || (!NtHash)) if ((!User) || (!Password) || (!NtHash))
return FALSE; return FALSE;