network/route: fix condition in route_can_update()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jun 2024 08:59:28 +0000 (17:59 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 5 Jun 2024 12:04:52 +0000 (13:04 +0100)
commit8b439af2c0cbe1e457fdf008eb92da42cd90546b
treef02233025cdaa476d4192ae1468e8695051708c9
parent3523d28b97362d2568eeb96bc5d99691824a79fa
network/route: fix condition in route_can_update()

An existing route with lifetime can be always updated with a new
finite lifetime. As the comment in the code says, we cannot disable the
lifetime. So, the condition must be '==', rather than '!='.

Fixes #33210.
src/network/networkd-route.c