From 17aa4afba3a897321dc26c82010ef0faacd79dd9 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Tue, 28 Nov 2000 22:50:40 +0000 Subject: [PATCH] Use only the bit after the ``\'' when hashing the challenge in MSChapv2 Submitted by: Ustimenko Semen --- usr.sbin/ppp/chap_ms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ppp/chap_ms.c b/usr.sbin/ppp/chap_ms.c index e482296ef79..59ebb4638e5 100644 --- a/usr.sbin/ppp/chap_ms.c +++ b/usr.sbin/ppp/chap_ms.c @@ -159,7 +159,7 @@ ChallengeHash(char *PeerChallenge, char *AuthenticatorChallenge, SHA1_Update(&Context, PeerChallenge, 16); SHA1_Update(&Context, AuthenticatorChallenge, 16); - SHA1_Update(&Context, UserName, UserNameLen); + SHA1_Update(&Context, Name, strlen(Name)); SHA1_Final(Digest, &Context); memcpy(Challenge, Digest, 8);