]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: fix commit 5f04a209eae0a2a04eb60fd7235b3fcdf3cc81ba (#7432)
authorSusant Sahani <145210+ssahani@users.noreply.github.com>
Thu, 23 Nov 2017 16:38:08 +0000 (22:08 +0530)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Nov 2017 16:38:08 +0000 (01:38 +0900)
If classless route not provided configure default routes.
Something went wrong in the rebase.

src/network/networkd-dhcp4.c

index 83b5a39052ec4d897ced6ba3b71b64777b82801c..6e3f6629b60c21e12d56c76a1f41ce38cb7bd39f 100644 (file)
@@ -95,10 +95,8 @@ static int link_set_dhcp_routes(Link *link) {
                 return log_link_warning_errno(link, r, "DHCP error: could not get address: %m");
 
         n = sd_dhcp_lease_get_routes(link->dhcp_lease, &static_routes);
-        if (n == -ENODATA)
-                return 0;
         if (n < 0)
-                return log_link_warning_errno(link, n, "DHCP error: could not get routes: %m");
+                log_link_debug_errno(link, n, "DHCP error: could not get routes: %m");
 
         for (i = 0; i < n; i++) {
                 _cleanup_route_free_ Route *route = NULL;