summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-04-24 17:30:07 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-04-24 17:30:07 +0400
commit51210024e9a4149b80b2643f153d5f9d8d45e1f5 (patch)
treed90925b4985c92f2c590f2fb52c5987e51791b0c /accel-pppd
parentb1a4c68fa51d69283deb9e22c370349ee36d3cca (diff)
downloadaccel-ppp-51210024e9a4149b80b2643f153d5f9d8d45e1f5.tar.gz
accel-ppp-51210024e9a4149b80b2643f153d5f9d8d45e1f5.zip
ppp: ipv6: check that ipv6 was not closed in ND
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ipv6/nd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ipv6/nd.c b/accel-pppd/ipv6/nd.c
index 7f5616b..eeaef7a 100644
--- a/accel-pppd/ipv6/nd.c
+++ b/accel-pppd/ipv6/nd.c
@@ -108,6 +108,11 @@ static void ipv6_nd_send_ra(struct ipv6_nd_handler_t *h, struct sockaddr_in6 *ad
log_emerg("out of memory\n");
return;
}
+
+ if (!h->ses->ipv6) {
+ triton_timer_del(&h->timer);
+ return;
+ }
memset(adv, 0, sizeof(*adv));
adv->nd_ra_type = ND_ROUTER_ADVERT;