diff options
author | Susant Sahani <susant@redhat.com> | 2017-01-24 23:54:34 +0530 |
---|---|---|
committer | Susant Sahani <susant@redhat.com> | 2017-01-24 23:54:34 +0530 |
commit | 7ed95830dcbb9c762399b66d926c9547aed291aa (patch) | |
tree | e93c155092e4eca0ab85941d9206c69eea214d1e /src/basic/socket-util.c | |
parent | a341dfe563bf3be791107a0c98d47f74366c637d (diff) |
socket-utils: revert f1811313f42dc7ddaed3c47edc834c2bfd1309b2
':' in not a a valid interface name.
Diffstat (limited to 'src/basic/socket-util.c')
-rw-r--r-- | src/basic/socket-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/socket-util.c b/src/basic/socket-util.c index c882b8a12a..77f81a60ba 100644 --- a/src/basic/socket-util.c +++ b/src/basic/socket-util.c @@ -887,7 +887,7 @@ bool ifname_valid(const char *p) { if ((unsigned char) *p <= 32U) return false; - if (*p == '/') + if (*p == ':' || *p == '/') return false; numeric = numeric && (*p >= '0' && *p <= '9'); |