apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1088568 - /apr/apr/branches/1.5.x/network_io/win32/sockets.c
Date Mon, 04 Apr 2011 11:50:57 GMT
Author: trawick
Date: Mon Apr  4 11:50:56 2011
New Revision: 1088568

URL: http://svn.apache.org/viewvc?rev=1088568&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.5.x/network_io/win32/sockets.c

Modified: apr/apr/branches/1.5.x/network_io/win32/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/network_io/win32/sockets.c?rev=1088568&r1=1088567&r2=1088568&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/network_io/win32/sockets.c (original)
+++ apr/apr/branches/1.5.x/network_io/win32/sockets.c Mon Apr  4 11:50:56 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 



Mime
View raw message