Skip to content

Commit

Permalink
networkd: fix commit 5f04a20 (#7432)
Browse files Browse the repository at this point in the history
If classless route not provided configure default routes.
Something went wrong in the rebase.
  • Loading branch information
ssahani authored and yuwata committed Nov 23, 2017
1 parent 459aafc commit 8dc787d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/network/networkd-dhcp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8dc787d

Please sign in to comment.