From 268f31a45cb63bc2027c57df0ea1d9de12ce7d31 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Wed, 24 Aug 2011 15:15:21 +0400 Subject: ppp: ipv6_nd: safe timer deletion --- accel-pppd/ppp/ipv6_nd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3