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.
2 parents 55b1192 + 8cf6e8f commit 559f215Copy full SHA for 559f215
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