summaryrefslogtreecommitdiff
path: root/src/network/networkd-route-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-route-util.c')
-rw-r--r--src/network/networkd-route-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-route-util.c b/src/network/networkd-route-util.c
index 312f5f298a..0366382093 100644
--- a/src/network/networkd-route-util.c
+++ b/src/network/networkd-route-util.c
@@ -417,8 +417,8 @@ int manager_get_route_table_to_string(const Manager *m, uint32_t table, char **r
assert(m);
assert(ret);
- if (table == 0)
- return -EINVAL;
+ /* Unlike manager_get_route_table_from_string(), this accepts 0, as the kernel may create routes with
+ * table 0. See issue #25089. */
s = route_table_to_string(table);
if (!s)