From b709c5de830608a00589605671e92189205b13bf Mon Sep 17 00:00:00 2001 From: sagar Date: Mon, 28 Jul 2025 17:21:18 +0000 Subject: [PATCH] correct ppp auth status being returned --- patches/simplify_l2tp_auth.patch | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/patches/simplify_l2tp_auth.patch b/patches/simplify_l2tp_auth.patch index fdf70e5..370b518 100644 --- a/patches/simplify_l2tp_auth.patch +++ b/patches/simplify_l2tp_auth.patch @@ -1,5 +1,5 @@ diff --git a/src/Cedar/Proto_PPP.c b/src/Cedar/Proto_PPP.c -index e9908e0..ed2c2e0 100644 +index e9908e0..120a65b 100644 --- a/src/Cedar/Proto_PPP.c +++ b/src/Cedar/Proto_PPP.c @@ -320,12 +320,12 @@ void PPPThread(THREAD *thread, void *param) @@ -19,15 +19,19 @@ index e9908e0..ed2c2e0 100644 if (PPPSendAndRetransmitRequest(p, PPP_PROTOCOL_LCP, c) == false) { PPPSetStatus(p, PPP_STATUS_FAIL); -@@ -1873,7 +1873,7 @@ bool PPPProcessPAPRequestPacket(PPP_SESSION *p, PPP_PACKET *pp) +@@ -1871,12 +1871,6 @@ bool PPPProcessPAPRequestPacket(PPP_SESSION *p, PPP_PACKET *pp) + + p->AuthOk = true; } - else - { +- else +- { - PPPSetStatus(p, PPP_STATUS_FAIL); -+ PPPSetStatus(p, PPP_STATUS_AUTH_FAIL); - WHERE; - return false; - } +- WHERE; +- return false; +- } + } + } + } diff --git a/src/Cedar/Proto_PPP.h b/src/Cedar/Proto_PPP.h index 1278fbc..d95d26d 100644 --- a/src/Cedar/Proto_PPP.h