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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user