From 30cff41b56be0d4c3e407e8aa4de5b289eef2ab0 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 19 Aug 2015 16:12:06 +0300 Subject: ipoe: fixed condition to register radius plugin --- accel-pppd/ctrl/ipoe/ipoe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 7b59ce76..8b28c76c 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -633,8 +633,7 @@ static void ipoe_session_start(struct ipoe_session *ses) return; #ifdef RADIUS - if ((conf_attr_dhcp_opt82 || conf_attr_dhcp_opt82_remote_id || conf_attr_dhcp_opt82_circuit_id) && - ses->relay_agent && radius_loaded) { + if (radius_loaded) { ses->radius.send_access_request = ipoe_rad_send_auth_request; ses->radius.send_accounting_request = ipoe_rad_send_acct_request; rad_register_plugin(&ses->ses, &ses->radius); -- cgit v1.2.3