提交 40311e78 编写于 作者: D Dmitry Kozlov

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: NDmitry Kozlov <xeb@mail.ru>
上级 7844d8e3
......@@ -395,6 +395,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册