aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/http_ntlm.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c
index 98e10c08a..8f1db8983 100644
--- a/lib/http_ntlm.c
+++ b/lib/http_ntlm.c
@@ -226,17 +226,16 @@ static void mkhash(char *password,
pw[i] = 0;
{
- /* create LanManager hashed password */
-
+ /* create LanManager hashed password */
DES_key_schedule ks;
setup_des_key(pw, DESKEY(ks));
- DES_ecb_encrypt((DES_cblock *)magic, (DES_cblock *)lmbuffer, DESKEY(ks),
- DES_ENCRYPT);
+ DES_ecb_encrypt((DES_cblock *)magic, (DES_cblock *)lmbuffer,
+ DESKEY(ks), DES_ENCRYPT);
setup_des_key(pw+7, DESKEY(ks));
- DES_ecb_encrypt((DES_cblock *)magic, (DES_cblock *)lmbuffer+8, DESKEY(ks),
- DES_ENCRYPT);
+ DES_ecb_encrypt((DES_cblock *)magic, (DES_cblock *)(lmbuffer+8),
+ DESKEY(ks), DES_ENCRYPT);
memset(lmbuffer+16, 0, 5);
}