summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ppp')
-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 e0ec842..707fe8d 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);