From 1741dfdccca1f8b1ab405b365c2ec1e46f8185df Mon Sep 17 00:00:00 2001 From: Yihong Wu Date: Thu, 23 Feb 2023 13:03:10 +0000 Subject: [PATCH] Cedar/Proto_PPP: Fix radius authentication --- src/Cedar/Proto_PPP.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Cedar/Proto_PPP.c b/src/Cedar/Proto_PPP.c index e90c9700..0b8fa2dc 100644 --- a/src/Cedar/Proto_PPP.c +++ b/src/Cedar/Proto_PPP.c @@ -1265,8 +1265,6 @@ bool PPPProcessEAPResponsePacket(PPP_SESSION *p, PPP_PACKET *pp, PPP_PACKET *req UINT64 offer = 0; PPP_LCP *c; UCHAR ms_chap_v2_code[3]; - char username[MAX_SIZE]; - char hubname[MAX_SIZE]; HUB *hub; bool found = false; UINT authtype = AUTHTYPE_ANONYMOUS; @@ -1346,7 +1344,7 @@ bool PPPProcessEAPResponsePacket(PPP_SESSION *p, PPP_PACKET *pp, PPP_PACKET *req char client_ip_tmp[256]; IPToStr(client_ip_tmp, sizeof(client_ip_tmp), &p->ClientIP); Debug("EAP-MSCHAPv2 creating EAP RADIUS client\n"); - p->EapClient = HubNewEapClient(p->Cedar, hubname, client_ip_tmp, username, "L3:PPP"); + p->EapClient = HubNewEapClient(p->Cedar, p->Eap_Identity.HubName, client_ip_tmp, p->Eap_Identity.UserName, "L3:PPP"); if (p->EapClient == NULL) {