diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-11 04:26:48 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2024-11-11 14:59:41 +0100 |
commit | fd2ea787bd6e80d9cccfe4a061d8b5267d9ae83d (patch) | |
tree | e4250a4cc26a375b29f4b465f4882d3a2543cd16 /src/network/networkd-route.c | |
parent | network/nexthop: do not remove depending nexthops when a nexthop is removed (diff) | |
download | systemd-fd2ea787bd6e80d9cccfe4a061d8b5267d9ae83d.tar.xz systemd-fd2ea787bd6e80d9cccfe4a061d8b5267d9ae83d.zip |
network/nexthop: forget dependent routes without trying to remove
When a nexthop is removed, routes depend on the removed nexthop are
already removed. It is not necessary to remove them, as already
commented. Let's forget them without trying to remove.
Diffstat (limited to 'src/network/networkd-route.c')
-rw-r--r-- | src/network/networkd-route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index 8317a5894c..3f775fc13c 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -47,7 +47,7 @@ static Route* route_detach_impl(Route *route) { return NULL; } -static void route_detach(Route *route) { +void route_detach(Route *route) { route_unref(route_detach_impl(route)); } |