network: add missing increment of Link::set_flags_messages
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Jun 2021 19:32:21 +0000 (04:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Jun 2021 18:58:59 +0000 (03:58 +0900)
commit7149bde4bae8eaa21d6b9d355bffb3cc313d566c
tree853dddf812a80ef788fbbaea4c9bc90c278ea8a3
parent1753d3021564671fba3d3196a84da657d15fb632
network: add missing increment of Link::set_flags_messages

link_up_or_down() will decrement the counter when the subsequent
RTM_GETLINK netlink method is finished. So, we need to increment
the counter here.

Fixes the issue mentioned at
https://github.com/systemd/systemd/issues/19832#issuecomment-860255692.
src/network/networkd-setlink.c