summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-10-24 14:10:30 +0000
committerStef Walter <stef@memberwebs.com>2009-10-24 14:10:30 +0000
commit3d37e877286da4943924843625e22fbb4057314b (patch)
tree9932e5105793c085cc7fbede9e2358a4ca05944d
parent9145a2db71a85064aa6a198c44da3cf753241131 (diff)
Fix problem in parsing bracketed IPv6 addresses.
-rw-r--r--common/sock-any.c2
1 files changed, 1 insertions, 1 deletions
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)