summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-12-19 19:13:11 +0100
committerDmitry Kozlov <xeb@mail.ru>2018-12-20 06:21:30 +0300
commit6355bfd7b832c17137ecaab3b779aaf2460651fd (patch)
treea57e37bd042054f8a1e37de7d473daa8a81c7e32 /accel-pppd
parent6f6f7f2efb9432efe7d3b4f749022da2cfc39fb3 (diff)
downloadaccel-ppp-6355bfd7b832c17137ecaab3b779aaf2460651fd.tar.gz
accel-ppp-6355bfd7b832c17137ecaab3b779aaf2460651fd.zip
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: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/radius/radius.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c
index abcb2e5..d910c9c 100644
--- a/accel-pppd/radius/radius.c
+++ b/accel-pppd/radius/radius.c
@@ -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)