You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/01/09 20:21:25 UTC
svn commit: r494532 - /apr/apr/branches/1.2.x/network_io/win32/sockets.c
Author: wrowe
Date: Tue Jan 9 11:21:25 2007
New Revision: 494532
URL: http://svn.apache.org/viewvc?view=rev&rev=494532
Log:
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
Backport: 494531
Modified:
apr/apr/branches/1.2.x/network_io/win32/sockets.c
Modified: apr/apr/branches/1.2.x/network_io/win32/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/network_io/win32/sockets.c?view=diff&rev=494532&r1=494531&r2=494532
==============================================================================
--- apr/apr/branches/1.2.x/network_io/win32/sockets.c (original)
+++ apr/apr/branches/1.2.x/network_io/win32/sockets.c Tue Jan 9 11:21:25 2007
@@ -451,9 +451,7 @@
(*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),