summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/ndisc-router.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-09-28 19:28:05 +0900
committerEvgeny Vereshchagin <evvers@ya.ru>2018-09-26 18:54:21 +0000
commitf3241c61f12dbd8f0ed37419ae272e291d09461d (patch)
treeb0862f4a55bcca0bf10b773331b3822c0009eead /src/libsystemd-network/ndisc-router.c
parent0f0a1dad7d69802a7e6c7fc9aba350f0e87c1952 (diff)
downloadsystemd-f3241c61f12dbd8f0ed37419ae272e291d09461d.tar.gz
ndisc: fix two infinite loops
Diffstat (limited to 'src/libsystemd-network/ndisc-router.c')
-rw-r--r--src/libsystemd-network/ndisc-router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/ndisc-router.c b/src/libsystemd-network/ndisc-router.c
index c6e75ab312..b982dcc07d 100644
--- a/src/libsystemd-network/ndisc-router.c
+++ b/src/libsystemd-network/ndisc-router.c
@@ -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) {