ndisc: fix two infinite loops
This commit is contained in:
committed by
Evgeny Vereshchagin
parent
0f0a1dad7d
commit
f3241c61f1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user