apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r494531 - /apr/apr/trunk/network_io/win32/sockets.c
Date Tue, 09 Jan 2007 19:20:36 GMT
Author: wrowe
Date: Tue Jan  9 11:20:35 2007
New Revision: 494531

URL: http://svn.apache.org/viewvc?view=rev&rev=494531
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

Modified:
    apr/apr/trunk/network_io/win32/sockets.c

Modified: apr/apr/trunk/network_io/win32/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/win32/sockets.c?view=diff&rev=494531&r1=494530&r2=494531
==============================================================================
--- apr/apr/trunk/network_io/win32/sockets.c (original)
+++ apr/apr/trunk/network_io/win32/sockets.c Tue Jan  9 11:20:35 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), 



Mime
View raw message