]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/route: do not invalidate [Route] section when an empty string is assigned...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Jan 2024 20:23:06 +0000 (05:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 6 Jan 2024 16:39:58 +0000 (01:39 +0900)
src/network/networkd-route.c

index abaea4e6c3f61fc7602e6acb08ba79e05b3c86d7..0d2765ccf87f0fe1e0112a9bbc68f98394a9a99d 100644 (file)
@@ -2905,6 +2905,7 @@ int config_parse_multipath_route(
 
         if (isempty(rvalue)) {
                 n->multipath_routes = ordered_set_free_with_destructor(n->multipath_routes, multipath_route_free);
+                TAKE_PTR(n);
                 return 0;
         }