summaryrefslogtreecommitdiff
path: root/src/network/netdev/vxlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/netdev/vxlan.c')
-rw-r--r--src/network/netdev/vxlan.c4
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;
}