summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-07-12 15:22:39 +0000
committerStef Walter <stef@memberwebs.com>2005-07-12 15:22:39 +0000
commit0f3700cb67ae820fcd308222e25f8497f437e475 (patch)
treeb982637a33a490ffd4af5b77c916c80211c915fe
parentf9d9ebea4ae7518f1570b21a3a7a562c72e736bb (diff)
Fix problem with binding to certain 'long' addresses
-rw-r--r--ChangeLog3
-rw-r--r--common/sock_any.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 34c7d44..6988623 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,9 @@
-1.5
+1.5 [2005-07-02]
- Handle condition of server refusing data transfers more gracefully.
- Less chatty when setting timeouts fail
- Drop privileges after binding to port. Allows listening on ports < 1024
- Ported to Solaris
+ - Fix problem with binding to certain 'long' addresses
1.4.1 [2005-04-15]
- Fixed bug (introduced in 1.4) when Header was not present.
diff --git a/common/sock_any.c b/common/sock_any.c
index 7535e02..fc38768 100644
--- a/common/sock_any.c
+++ b/common/sock_any.c
@@ -116,7 +116,7 @@ int sock_any_pton(const char* addr, struct sockaddr_any* any, int opts)
#define IPV4_PORT_CHARS
#define IPV4_CHARS "0123456789."
#define IPV4_MIN 3
- #define IPV4_MAX 18
+ #define IPV4_MAX 21
int port = 0;
t = NULL;
@@ -166,7 +166,7 @@ int sock_any_pton(const char* addr, struct sockaddr_any* any, int opts)
{
#define IPV6_CHARS "0123456789:"
#define IPV6_MIN 3
- #define IPV6_MAX 48
+ #define IPV6_MAX 51
int port = -1;
t = NULL;