Skip to content

Commit

Permalink
network/route: ignore EEXIST reply when the corresponding request is …
Browse files Browse the repository at this point in the history
…already detached

Follow-ups for db8dc7c.
Fixes systemd#34275.
  • Loading branch information
yuwata committed Sep 6, 2024
1 parent b798f65 commit 195bb6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/network/networkd-route.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,13 @@ static int route_update_on_existing(Request *req) {
Route *rt = ASSERT_PTR(ASSERT_PTR(req)->userdata);
int r;

if (!req->manager)
/* Already detached? At least there are two posibilities then.
* 1) The interface is removed, and all queued requests for the interface are cancelled.
* 2) networkd is now stopping, hence all queued requests are cancelled.
* Anyway, we can ignore the request, and there is nothing we can do. */
return 0;

if (rt->family == AF_INET || ordered_set_isempty(rt->nexthops))
return route_update_on_existing_one(req, rt);

Expand Down

0 comments on commit 195bb6f

Please sign in to comment.