correct ppp auth status being returned

This commit is contained in:
sagar 2025-07-28 17:21:18 +00:00
parent 0cb753882d
commit b709c5de83

View file

@ -1,5 +1,5 @@
diff --git a/src/Cedar/Proto_PPP.c b/src/Cedar/Proto_PPP.c 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 --- a/src/Cedar/Proto_PPP.c
+++ b/src/Cedar/Proto_PPP.c +++ b/src/Cedar/Proto_PPP.c
@@ -320,12 +320,12 @@ void PPPThread(THREAD *thread, void *param) @@ -320,12 +320,12 @@ void PPPThread(THREAD *thread, void *param)
@ -19,14 +19,18 @@ index e9908e0..ed2c2e0 100644
if (PPPSendAndRetransmitRequest(p, PPP_PROTOCOL_LCP, c) == false) if (PPPSendAndRetransmitRequest(p, PPP_PROTOCOL_LCP, c) == false)
{ {
PPPSetStatus(p, PPP_STATUS_FAIL); 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_FAIL);
+ PPPSetStatus(p, PPP_STATUS_AUTH_FAIL); - WHERE;
WHERE; - return false;
return false; - }
}
}
} }
diff --git a/src/Cedar/Proto_PPP.h b/src/Cedar/Proto_PPP.h diff --git a/src/Cedar/Proto_PPP.h b/src/Cedar/Proto_PPP.h
index 1278fbc..d95d26d 100644 index 1278fbc..d95d26d 100644