diff options
author | Susant Sahani <ssahani@users.noreply.github.com> | 2016-12-06 16:51:45 +0530 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-12-06 12:21:45 +0100 |
commit | 10452f7c93c3a492c1f8fdc4a49b65ddc40b27a2 (patch) | |
tree | 4f9bff7fdf68acc0a0c7cc9c9b884f433cc945e2 /src/network | |
parent | 5efdbf11d1ef7da72d3de58abecd84edefbaf98a (diff) |
core: introduce parse_ip_port (#4825)
1. Listed in TODO.
2. Tree wide replace safe_atou16 with parse_ip_port incase
it's used for ports.
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/netdev/vxlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/netdev/vxlan.c b/src/network/netdev/vxlan.c index 10c892b044..231f5cb442 100644 --- a/src/network/netdev/vxlan.c +++ b/src/network/netdev/vxlan.c @@ -252,8 +252,8 @@ int config_parse_destination_port(const char *unit, assert(rvalue); assert(data); - r = safe_atou16(rvalue, &port); - if (r < 0 || port <= 0) { + r = parse_ip_port(rvalue, &port); + if (r < 0) { log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse VXLAN destination port '%s'.", rvalue); return 0; } |