mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
networkd: use address_label_valid for label validation
This commit is contained in:
parent
2680894816
commit
a87d19fe0a
@ -821,8 +821,8 @@ int config_parse_label(
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (strlen(rvalue) >= IFNAMSIZ) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, 0, "Interface label is too long, ignoring assignment: %s", rvalue);
|
||||
if (!address_label_valid(rvalue)) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, 0, "Interface label is too long or invalid, ignoring assignment: %s", rvalue);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user