network: unref existing sd_ipv4acd object when not necessary
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Aug 2022 06:39:22 +0000 (15:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Aug 2022 06:44:39 +0000 (15:44 +0900)
commit03ff3c5a466cef45ebfd9353eecdfba89281886a
tree8c7a59b0204b1adbf319f1565a7fe7f20caebc18
parent3c45d0d099927083b906c2ef5e4659fce11ea06a
network: unref existing sd_ipv4acd object when not necessary

On reconfiguring an interface, the new setting may not enable IPv4ACD
for an existing address anymore. Hence, we need to unref it. Otherwise,
newly requested addresses may never be ready for (re-)configuring.
src/network/networkd-ipv4acd.c