]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: link_check_ready() returns earlier if routes are not configured yet
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 12 May 2019 21:48:31 +0000 (06:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 May 2019 20:53:41 +0000 (05:53 +0900)
link_request_set_routes() calls link_check_ready(), so it is not
necessary to continue that here.

src/network/networkd-link.c

index cd1b0325e8e527fb1b6c5912f9f42ec913ba27ea..2398ef79366f00760af3dd841e744506e945d0a8 100644 (file)
@@ -949,6 +949,7 @@ void link_check_ready(Link *link) {
         if (!link->addresses_ready) {
                 link->addresses_ready = true;
                 link_request_set_routes(link);
+                return;
         }
 
         if (!link->static_routes_configured)