]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: fix possible message counter double decrement
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 May 2021 06:23:57 +0000 (15:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 May 2021 11:40:50 +0000 (20:40 +0900)
commitce9388d72a710ffc4840572fecdfe7d9c0be0956
treea5d5b99ef1e4401826060cac09e8392378ab2095
parentc54cfef3968613f9e86e76a3337148360e20150e
network: fix possible message counter double decrement

When after_configure() for a request fails, then the request is not
removed from the queue at that time, and the link enters to failed
state. After that, if the link is reconfigured or its carrier is lost,
then the request is dropped from the queue, and the message_counter is
decreased. However, the counter is already or will be also decreased
when the corresponding netlink reply is received.
So, the counter is decreased twice.
src/network/networkd-address.c
src/network/networkd-neighbor.c
src/network/networkd-nexthop.c
src/network/networkd-route.c
src/network/networkd-routing-policy-rule.c