]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: stop IPv4ACD client for DHCPv4 when lease is exprired
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Oct 2020 06:26:19 +0000 (15:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Oct 2020 06:38:29 +0000 (15:38 +0900)
src/network/networkd-dhcp4.c

index 6145007e8c7ba2a8b849c2ab8d1eeb5ec463f03f..76d1926a08e2a7e5ed33681213eff29a8b0f9918 100644 (file)
@@ -563,6 +563,9 @@ static int dhcp_lease_lost(Link *link) {
         link->dhcp_lease = sd_dhcp_lease_unref(link->dhcp_lease);
         link_dirty(link);
 
+        if (link->dhcp_acd)
+                (void) sd_ipv4acd_stop(link->dhcp_acd);
+
         return r;
 }