summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-11-28 14:26:24 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-11-28 14:28:33 +0300
commit406f825a168f2155880392e5fb5aaf8f1ebc6851 (patch)
treec52bfdb8682876489ddc917acb5c44aee69aa901 /accel-pppd
parent6fb04941ca41312909208938bfac4f753d3c277c (diff)
downloadaccel-ppp-406f825a168f2155880392e5fb5aaf8f1ebc6851.tar.gz
accel-ppp-406f825a168f2155880392e5fb5aaf8f1ebc6851.zip
ipoe: bug fix
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index c7db14aa..02956afe 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -1139,7 +1139,8 @@ static void ipoe_session_terminated(struct ipoe_session *ses)
if (ses->l4_redirect_set)
ipoe_change_l4_redirect(ses, 1);
- ap_session_finished(&ses->ses);
+ if (!ses->ses.terminated)
+ ap_session_finished(&ses->ses);
}
static void ipoe_session_terminated_pkt(struct dhcpv4_packet *pack)