diff options
author | peoronoob <peoro.noob@gmail.com> | 2017-01-24 04:26:41 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-01-23 22:26:41 -0500 |
commit | a341dfe563bf3be791107a0c98d47f74366c637d (patch) | |
tree | bccb578d77e07eb113084cb2c08e9f49d352f963 /src/basic/socket-util.c | |
parent | 7e974e8530e3605db8186bd0c33bf36087e24e22 (diff) |
network: accept colons in network interface names, normally used for alias interfaces (#5117)
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 77f81a60ba..c882b8a12a 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 == ':' || *p == '/') + if (*p == '/') return false; numeric = numeric && (*p >= '0' && *p <= '9'); |