diff options
-rw-r--r-- | src/ntlm_crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ntlm_crypto.c b/src/ntlm_crypto.c index 370873a..c07f6cd 100644 --- a/src/ntlm_crypto.c +++ b/src/ntlm_crypto.c @@ -768,7 +768,7 @@ static int ntlmv1_sign(struct ntlm_rc4_handle *handle, return EINVAL; } - rc4buf[0] = 0; + rc4buf[0] = random_pad; rc4buf[1] = htole32(CRC32(0, message)); rc4buf[2] = htole32(seq_num); @@ -780,7 +780,7 @@ static int ntlmv1_sign(struct ntlm_rc4_handle *handle, if (ret) return ret; msg_sig->v1.version = htole32(NTLMSSP_MESSAGE_SIGNATURE_VERSION); - msg_sig->v1.random_pad = random_pad; + msg_sig->v1.random_pad = 0; return 0; } |