diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2011-04-04 11:50:56 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2011-04-04 11:50:56 +0000 |
commit | 5f9b93d91c0d5b8f54c09ecec6b818506467a97f (patch) | |
tree | 27dbf8d57a649a14ffa9c5f52dc88cce560efe1c /network_io | |
parent | 7b9bdda304ca4fc5be0730b192278bf1708a2fce (diff) | |
download | libapr-5f9b93d91c0d5b8f54c09ecec6b818506467a97f.tar.gz |
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()
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1088568 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r-- | network_io/win32/sockets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/network_io/win32/sockets.c b/network_io/win32/sockets.c index 62f61fe4a..d354de1c9 100644 --- a/network_io/win32/sockets.c +++ b/network_io/win32/sockets.c @@ -253,6 +253,7 @@ APR_DECLARE(apr_status_t) apr_socket_accept(apr_socket_t **new, (*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 |