summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-address.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-07-14 19:00:06 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-07-15 10:15:25 +0200
commit93b0b88c3a3f9e942aeedcdf5d12585dba61790d (patch)
treead506914c52a22a699bacdbab1b7c86d8657a626 /src/network/networkd-address.c
parentnetwork: dhcp4: do not assign new address before old one is not removed (diff)
downloadsystemd-93b0b88c3a3f9e942aeedcdf5d12585dba61790d.tar.xz
systemd-93b0b88c3a3f9e942aeedcdf5d12585dba61790d.zip
network: free address when it is removed
Diffstat (limited to '')
-rw-r--r--src/network/networkd-address.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index 44e317e990..aeadb7b01b 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -444,6 +444,8 @@ 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
+ (void) manager_rtnl_process_address(rtnl, m, link->manager);
return 1;
}