socket-utils: revert f1811313f42dc7ddaed3c47edc834c2bfd1309b2

':' in not a a valid interface name.
This commit is contained in:
Susant Sahani
2017-01-24 23:54:34 +05:30
parent a341dfe563
commit 7ed95830dc
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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');