ndisc: fix two infinite loops

This commit is contained in:
Yu Watanabe
2018-09-26 18:54:21 +00:00
committed by Evgeny Vereshchagin
parent 0f0a1dad7d
commit f3241c61f1
+2 -2
View File
@@ -168,7 +168,7 @@ int ndisc_router_parse(sd_ndisc_router *rt) {
if (has_mtu) {
log_ndisc("MTU option specified twice, ignoring.");
continue;
break;
}
if (length != 8) {
@@ -209,7 +209,7 @@ int ndisc_router_parse(sd_ndisc_router *rt) {
if (has_flag_extension) {
log_ndisc("Flags extension option specified twice, ignoring.");
continue;
break;
}
if (length < 1*8) {