1
1
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:
Susant Sahani 2017-02-28 16:54:33 +05:30
parent 2680894816
commit a87d19fe0a

View File

@ -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;
}