diff options
-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) |