apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r443264 - /apr/apr/branches/0.9.x/network_io/unix/sockets.c
Date Thu, 14 Sep 2006 06:29:51 GMT
Author: mturk
Date: Wed Sep 13 23:29:51 2006
New Revision: 443264

URL: http://svn.apache.org/viewvc?view=rev&rev=443264
Log:
Backport r443262 from trunk.

Modified:
    apr/apr/branches/0.9.x/network_io/unix/sockets.c

Modified: apr/apr/branches/0.9.x/network_io/unix/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/network_io/unix/sockets.c?view=diff&rev=443264&r1=443263&r2=443264
==============================================================================
--- apr/apr/branches/0.9.x/network_io/unix/sockets.c (original)
+++ apr/apr/branches/0.9.x/network_io/unix/sockets.c Wed Sep 13 23:29:51 2006
@@ -156,6 +156,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