summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2011-08-24 15:15:21 +0400
committerKozlov Dmitry <dima@server>2011-08-24 15:15:21 +0400
commit268f31a45cb63bc2027c57df0ea1d9de12ce7d31 (patch)
tree8bfd1647d833e2b718c9bf88795c7b616e9cfdd0 /accel-pppd
parent9193e4e597b058ab143987e40797a6bb2b3a20e4 (diff)
downloadaccel-ppp-268f31a45cb63bc2027c57df0ea1d9de12ce7d31.tar.gz
accel-ppp-268f31a45cb63bc2027c57df0ea1d9de12ce7d31.zip
ppp: ipv6_nd: safe timer deletion
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ppp/ipv6_nd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ipv6_nd.c b/accel-pppd/ppp/ipv6_nd.c
index e0ec842e..707fe8de 100644
--- a/accel-pppd/ppp/ipv6_nd.c
+++ b/accel-pppd/ppp/ipv6_nd.c
@@ -324,7 +324,9 @@ static void ev_ppp_finishing(struct ppp_t *ppp)
if (!h)
return;
- triton_timer_del(&h->timer);
+ if (h->timer.tpd)
+ triton_timer_del(&h->timer);
+
triton_md_unregister_handler(&h->hnd);
close(h->hnd.fd);