1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

network: allow 0 for table number

Fixes #25089.
This commit is contained in:
Yu Watanabe 2022-10-28 11:33:19 +09:00
parent 29de4f7304
commit 513bed294e

View File

@ -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)