summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-ipv4ll.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-05-14 10:58:20 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-05-15 05:44:30 +0200
commit807341ec99b946e2ec27f43d27b9ae345a137d4c (patch)
treec6335fff2cfc629da9391dd3f5b83070183ba59d /src/network/networkd-ipv4ll.c
parentnetworkd: do not generate MAC for bridge device. (diff)
downloadsystemd-807341ec99b946e2ec27f43d27b9ae345a137d4c.tar.xz
systemd-807341ec99b946e2ec27f43d27b9ae345a137d4c.zip
network: add missing error check
Diffstat (limited to 'src/network/networkd-ipv4ll.c')
-rw-r--r--src/network/networkd-ipv4ll.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/network/networkd-ipv4ll.c b/src/network/networkd-ipv4ll.c
index 8fb8a64e6d..9df5646a7e 100644
--- a/src/network/networkd-ipv4ll.c
+++ b/src/network/networkd-ipv4ll.c
@@ -34,7 +34,9 @@ static int ipv4ll_address_lost(Link *link) {
address->prefixlen = 16;
address->scope = RT_SCOPE_LINK;
- address_remove(address, link, NULL);
+ r = address_remove(address, link, NULL);
+ if (r < 0)
+ return r;
r = route_new(&route);
if (r < 0)
@@ -44,7 +46,9 @@ static int ipv4ll_address_lost(Link *link) {
route->scope = RT_SCOPE_LINK;
route->priority = IPV4LL_ROUTE_METRIC;
- route_remove(route, link, NULL);
+ r = route_remove(route, link, NULL);
+ if (r < 0)
+ return r;
link_check_ready(link);