network/route: update expiration timer only when we know the route exists

This commit is contained in:
Yu Watanabe
2024-01-12 09:46:09 +09:00
parent 14436bf523
commit 2c0b49baab
4 changed files with 20 additions and 13 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ static int ndisc_route_handler(sd_netlink *rtnl, sd_netlink_message *m, Request
assert(link);
r = route_configure_handler_internal(rtnl, m, link, "Could not set NDisc route");
r = route_configure_handler_internal(rtnl, m, link, route, "Could not set NDisc route");
if (r <= 0)
return r;