Author: trawick Date: Mon Apr 4 11:51:53 2011 New Revision: 1088569 URL: http://svn.apache.org/viewvc?rev=1088569&view=rev Log: Grab r1088352 from trunk: Windows: Save a call to getpeername() when trying to retrieve the remote address of a socket created by apr_socket_accept() Modified: apr/apr/branches/1.4.x/network_io/win32/sockets.c Modified: apr/apr/branches/1.4.x/network_io/win32/sockets.c URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/network_io/win32/sockets.c?rev=1088569&r1=1088568&r2=1088569&view=diff ============================================================================== --- apr/apr/branches/1.4.x/network_io/win32/sockets.c (original) +++ apr/apr/branches/1.4.x/network_io/win32/sockets.c Mon Apr 4 11:51:53 2011 @@ -253,6 +253,7 @@ APR_DECLARE(apr_status_t) apr_socket_acc (*new)->remote_addr->salen = sizeof((*new)->remote_addr->sa); memcpy (&(*new)->remote_addr->sa, &sa, salen); *(*new)->local_addr = *sock->local_addr; + (*new)->remote_addr_unknown = 0; /* The above assignment just overwrote the pool entry. Setting the local_addr pool for the accepted socket back to what it should be. Otherwise all