]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: ndisc: do not ignore remaining addresses
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 12 Jul 2020 04:26:53 +0000 (13:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Jul 2020 08:15:25 +0000 (17:15 +0900)
Follow-up for c24c83dc67a63c88b0a537f4fa7f605b1fcbac39.

src/network/networkd-ndisc.c

index 1237524c168bc260829f5b7c4b88537416cd9b2d..6534effe27a0ffac7fbb8be2fb62bce8a2b05770 100644 (file)
@@ -404,7 +404,7 @@ static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *r
                 } else if (lifetime_valid > 0)
                         a->cinfo.ifa_valid = lifetime_valid;
                 else
-                        return 0; /* see RFC4862 section 5.5.3.d */
+                        continue; /* see RFC4862 section 5.5.3.d */
 
                 if (a->cinfo.ifa_valid == 0)
                         continue;
@@ -415,7 +415,6 @@ static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *r
                         link_enter_failed(link);
                         return r;
                 }
-
                 if (r > 0)
                         link->ndisc_messages++;
         }