8000
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 8e6beb3 commit 4675569Copy full SHA for 4675569
deps/ntlmclient/ntlm.c
@@ -988,9 +988,9 @@ static 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