apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r443262 - /apr/apr/trunk/network_io/unix/sockets.c
Date Thu, 14 Sep 2006 06:28:19 GMT
Author: mturk
Date: Wed Sep 13 23:28:19 2006
New Revision: 443262

URL: http://svn.apache.org/viewvc?view=rev&rev=443262
Log:
Make sure the temporary remote addr is initialized
to zero as it is done inside alloc_socket.

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

Modified: apr/apr/trunk/network_io/unix/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sockets.c?view=diff&rev=443262&r1=443261&r2=443262
==============================================================================
--- apr/apr/trunk/network_io/unix/sockets.c (original)
+++ apr/apr/trunk/network_io/unix/sockets.c Wed Sep 13 23:28:19 2006
@@ -179,6 +179,7 @@
     int s;
     apr_sockaddr_t sa;
 
+    memset(&sa, 0, sizeof(apr_sockaddr_t));
     apr_sockaddr_vars_set(&sa, sock->local_addr->sa.sin.sin_family, 0);
     sa.pool = connection_context;
     s = accept(sock->socketdes, (struct sockaddr *)&sa.sa, &sa.salen);



Mime
View raw message