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].
This commit is contained in:
Yu Watanabe
2024-01-04 23:18:28 +09:00
parent 96fc8cab2a
commit 18c4c5d84f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -1592,7 +1592,7 @@ int config_parse_mtu(
return 0;
}
return 0;
return 1;
}
int config_parse_rlimit(