mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +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…
Reference in New Issue
Block a user