From: Yu Watanabe Date: Mon, 10 Jul 2023 00:30:58 +0000 (+0900) Subject: network: use address_remove_and_drop() X-Git-Tag: v255-rc1~890^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fb1f929d5d191670bce602ca02dcbb2fbfde7af;p=thirdparty%2Fsystemd.git network: use address_remove_and_drop() --- diff --git a/src/network/networkd-dhcp-prefix-delegation.c b/src/network/networkd-dhcp-prefix-delegation.c index 9e39fa649ec..8d50da042c8 100644 --- a/src/network/networkd-dhcp-prefix-delegation.c +++ b/src/network/networkd-dhcp-prefix-delegation.c @@ -216,11 +216,9 @@ int dhcp_pd_remove(Link *link, bool only_marked) { link_remove_dhcp_pd_subnet_prefix(link, &prefix); - k = address_remove(address); + k = address_remove_and_drop(address); if (k < 0) r = k; - - address_cancel_request(address); } } diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c index fd72f734139..eeb3585f293 100644 --- a/src/network/networkd-dhcp4.c +++ b/src/network/networkd-dhcp4.c @@ -258,11 +258,9 @@ static int dhcp4_remove_address_and_routes(Link *link, bool only_marked) { if (only_marked && !address_is_marked(address)) continue; - k = address_remove(address); + k = address_remove_and_drop(address); if (k < 0) r = k; - - address_cancel_request(address); } return r; diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c index 44c9a95f8d1..755957f5b19 100644 --- a/src/network/networkd-dhcp6.c +++ b/src/network/networkd-dhcp6.c @@ -72,11 +72,9 @@ static int dhcp6_remove(Link *link, bool only_marked) { if (only_marked && !address_is_marked(address)) continue; - k = address_remove(address); + k = address_remove_and_drop(address); if (k < 0) r = k; - - address_cancel_request(address); } return r;