From eb9b2a05fb6715aa0516d5e4f4e0632e5f5752ff Mon Sep 17 00:00:00 2001
From: Maxime Bizon <mbizon@freebox.fr>
Date: Thu, 16 Jan 2020 01:03:22 +0100
Subject: [PATCH 08/18] pppd: don't allow mschap auth to be retried since pppd
 terminate lcp after first error

---
 pppd/chap_ms.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pppd/chap_ms.c b/pppd/chap_ms.c
index 1de5042..3c86df9 100644
--- a/pppd/chap_ms.c
+++ b/pppd/chap_ms.c
@@ -227,7 +227,7 @@ chapms_verify_response(int id, char *name,
 
  bad:
 	/* See comments below for MS-CHAP V2 */
-	slprintf(message, message_space, "E=691 R=1 C=%0.*B V=0",
+	slprintf(message, message_space, "E=691 R=0 C=%0.*B V=0",
 		 challenge_len, challenge);
 	return 0;
 }
@@ -304,7 +304,7 @@ chapms2_verify_response(int id, char *name,
 	 * Basically, this whole bit is useless code, even the small
 	 * implementation here is only because of overspecification.
 	 */
-	slprintf(message, message_space, "E=691 R=1 C=%0.*B V=0 M=%s",
+	slprintf(message, message_space, "E=691 R=0 C=%0.*B V=0 M=%s",
 		 challenge_len, challenge, "Access denied");
 	return 0;
 }
-- 
2.17.1

