projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2680894
)
networkd: use address_label_valid for label validation
author
Susant Sahani
<susant@redhat.com>
Tue, 28 Feb 2017 11:24:33 +0000
(16:54 +0530)
committer
Susant Sahani
<susant@redhat.com>
Tue, 28 Feb 2017 11:24:33 +0000
(16:54 +0530)
src/network/networkd-address.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-address.c
b/src/network/networkd-address.c
index
e34793e
..
2e6c763
100644
(file)
--- a/
src/network/networkd-address.c
+++ b/
src/network/networkd-address.c
@@
-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;
}