From 3d37e877286da4943924843625e22fbb4057314b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 24 Oct 2009 14:10:30 +0000 Subject: Fix problem in parsing bracketed IPv6 addresses. --- common/sock-any.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/sock-any.c b/common/sock-any.c index 1eea90e..583015f 100644 --- a/common/sock-any.c +++ b/common/sock-any.c @@ -206,7 +206,7 @@ int sock_any_pton(const char* addr, struct sockaddr_any* any, int opts) t++; } - if(t) + if(t && *t) { port = strtol(t, &t, 10); if(*t || port <= 0 || port >= 65536) -- cgit v1.2.3