network: route: update lifetime of existing route

Otherwise, the route whose lifetime is managed by the sd-event's timer
event source will be removed when the initial lifetime expires.
This commit is contained in:
Yu Watanabe
2021-10-27 23:38:18 +09:00
parent 435910b3a6
commit c1c655bb60
+1
View File
@@ -1572,6 +1572,7 @@ int link_request_route(
} else {
existing->source = route->source;
existing->provider = route->provider;
existing->lifetime_usec = route->lifetime_usec;
if (consume_object)
route_free(route);
}