summaryrefslogtreecommitdiff
path: root/accel-pppd/radius
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-10-23 16:58:59 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-10-23 16:59:21 +0400
commitda8c9ac5c65ef47e2cb1bd3325ae84aa6887eb8d (patch)
treea173531cec9a74e5e7cd46c9948b81219b34a5d1 /accel-pppd/radius
parentd30c909bf845e359ec657f294af13d36cce46d06 (diff)
downloadaccel-ppp-da8c9ac5c65ef47e2cb1bd3325ae84aa6887eb8d.tar.gz
accel-ppp-da8c9ac5c65ef47e2cb1bd3325ae84aa6887eb8d.zip
radius: skip vendor specific attributes when searching session for DM/CoA
This fixes invalid assosiation vendor specific Cisco-AVPair to Username attribute which both have same id and prevents to find sessions in some circumstances. Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r--accel-pppd/radius/radius.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c
index 30a8f80..3d20683 100644
--- a/accel-pppd/radius/radius.c
+++ b/accel-pppd/radius/radius.c
@@ -437,6 +437,8 @@ struct radius_pd_t *rad_find_session_pack(struct rad_packet_t *pack)
in_addr_t ipaddr = 0;
list_for_each_entry(attr, &pack->attrs, entry) {
+ if (attr->vendor)
+ continue;
switch(attr->attr->id) {
case Acct_Session_Id:
sessionid = attr->val.string;