We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d19de commit 8cf6e8fCopy full SHA for 8cf6e8f
src/ntlm.c
@@ -988,9 +988,9 @@ NTLM_INLINE(bool) generate_lm_hash(
988
keystr2_len = (password_len > 7) ? MIN(14, password_len) - 7 : 0;
989
990
for (i = 0; i < keystr1_len; i++)
991
- keystr1[i] = (unsigned char)toupper(password[i]);
+ keystr1[i] = (unsigned char)toupper((unsigned char)password[i]);
992
for (i = 0; i < keystr2_len; i++)
993
- keystr2[i] = (unsigned char)toupper(password[i+7]);
+ keystr2[i] = (unsigned char)toupper((unsigned char)password[i+7]);
994
995
/* DES encrypt the LM constant using the password as the key */
996
des_key_from_password(&key1, keystr1, keystr1_len);
0 commit comments