From 195bb6f97ebc5cd5e9932c62aa80df5427c30d67 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 6 Sep 2024 08:58:18 +0900 Subject: network/route: ignore EEXIST reply when the corresponding request is already detached Follow-ups for db8dc7c1dd7f4620e14fbc4c1560a68a1fc9b85b. Fixes #34275. --- src/network/networkd-route.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index 23adefc66a..4ed2c53888 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -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); -- cgit v1.2.3