diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-02 20:42:22 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-04 15:18:28 +0100 |
commit | 18c4c5d84f756b144a1823f3de8bc0e61264b976 (patch) | |
tree | 811fffe6fa7bd72da939a3fc61189943660aea4e /src | |
parent | Merge pull request #30578 from bluca/polkit-varlink (diff) | |
download | systemd-18c4c5d84f756b144a1823f3de8bc0e61264b976.tar.xz systemd-18c4c5d84f756b144a1823f3de8bc0e61264b976.zip |
network/route: make the route section invalid when an invalid MTUBytes= is specified
We usually set the invalid flag for a section if a setting in the section has
an invalid value. Let's also do the same thing for MTUBytes= in [Route].
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-route.c | 2 | ||||
-rw-r--r-- | src/shared/conf-parser.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index e7cc252243..72dbf9ed06 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -2814,7 +2814,7 @@ int config_parse_route_mtu( } r = config_parse_mtu(unit, filename, line, section, section_line, lvalue, ltype, rvalue, &n->mtu, userdata); - if (r < 0) + if (r <= 0) return r; TAKE_PTR(n); diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 5d4500cb05..1d201528ac 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -1592,7 +1592,7 @@ int config_parse_mtu( return 0; } - return 0; + return 1; } int config_parse_rlimit( |