提交 6355bfd7 编写于 作者: G Guillaume Nault 提交者: Dmitry Kozlov

radius: specify gateway in iproute_del()

Be more specific about which route we want to remove. By not specifying
the gateway we could remove a different route than the one we
originally inserted.
Signed-off-by: NGuillaume Nault <g.nault@alphalink.fr>
上级 6f6f7f2e
......@@ -628,7 +628,7 @@ static void ses_finishing(struct ap_session *ses)
for (fr = rpd->fr; fr; fr = fr->next) {
if (fr->gw)
iproute_del(0, 0, fr->dst, 0, 3, fr->mask, fr->prio);
iproute_del(0, 0, fr->dst, fr->gw, 3, fr->mask, fr->prio);
}
if (rpd->acct_started || rpd->acct_req)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册