提交 51210024 编写于 作者: D Dmitry Kozlov

ppp: ipv6: check that ipv6 was not closed in ND

上级 b1a4c68f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册