summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-address.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-08-08 05:31:12 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-08-08 05:31:12 +0200
commitfb282d4e256a79b19d3299999024e8fafd2ab0a0 (patch)
treef73347a1237d90502e4cc77d98adfaa9494a2f65 /src/network/networkd-address.c
parentMerge pull request #16682 from poettering/userdb-gecos-fix (diff)
downloadsystemd-fb282d4e256a79b19d3299999024e8fafd2ab0a0.tar.xz
systemd-fb282d4e256a79b19d3299999024e8fafd2ab0a0.zip
network: only process non-error message
Diffstat (limited to '')
-rw-r--r--src/network/networkd-address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index b09d75e615..0349ca6f93 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -487,7 +487,7 @@ static int address_remove_handler(sd_netlink *rtnl, sd_netlink_message *m, Link
r = sd_netlink_message_get_errno(m);
if (r < 0 && r != -EADDRNOTAVAIL)
log_link_message_warning_errno(link, m, r, "Could not drop address");
- else
+ else if (r >= 0)
(void) manager_rtnl_process_address(rtnl, m, link->manager);
return 1;