diff options
author | Stef Walter <stef@memberwebs.com> | 2009-10-24 14:10:30 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-10-24 14:10:30 +0000 |
commit | 3d37e877286da4943924843625e22fbb4057314b (patch) | |
tree | 9932e5105793c085cc7fbede9e2358a4ca05944d /common | |
parent | 9145a2db71a85064aa6a198c44da3cf753241131 (diff) |
Fix problem in parsing bracketed IPv6 addresses.
Diffstat (limited to 'common')
-rw-r--r-- | common/sock-any.c | 2 |
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) |