diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-01-09 19:20:35 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-01-09 19:20:35 +0000 |
commit | b96e3f29dbc26a6f05195678907e11a71702fdcf (patch) | |
tree | 69142af62dc28dc9de959476d40132e9a71df3e2 /network_io/win32/sockets.c | |
parent | 7c0ec80d0efaf6cff2d221c653517eeb86ff8306 (diff) | |
download | libapr-b96e3f29dbc26a6f05195678907e11a71702fdcf.tar.gz |
alloc_socket() now defaults to remote_host_unknown == 1
Solves a bug on Win 2000 where AcceptEx inhibits the proper
behavior of getpeername.
PR: 41321
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@494531 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io/win32/sockets.c')
-rw-r--r-- | network_io/win32/sockets.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/network_io/win32/sockets.c b/network_io/win32/sockets.c index eed351b04..fa68ce6b2 100644 --- a/network_io/win32/sockets.c +++ b/network_io/win32/sockets.c @@ -451,9 +451,7 @@ APR_DECLARE(apr_status_t) apr_os_sock_make(apr_socket_t **apr_sock, (*apr_sock)->remote_addr->pool = cont; /* XXX IPv6 - this assumes sin_port and sin6_port at same offset */ (*apr_sock)->remote_addr->port = ntohs((*apr_sock)->remote_addr->sa.sin.sin_port); - } - else { - (*apr_sock)->remote_addr_unknown = 1; + (*apr_sock)->remote_addr_unknown = 0; } apr_pool_cleanup_register((*apr_sock)->pool, (void *)(*apr_sock), |