You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2006/09/14 08:29:34 UTC
svn commit: r443263 - /apr/apr/branches/1.2.x/network_io/unix/sockets.c
Author: mturk
Date: Wed Sep 13 23:29:34 2006
New Revision: 443263
URL: http://svn.apache.org/viewvc?view=rev&rev=443263
Log:
Backport r443262 from trunk.
Modified:
apr/apr/branches/1.2.x/network_io/unix/sockets.c
Modified: apr/apr/branches/1.2.x/network_io/unix/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/network_io/unix/sockets.c?view=diff&rev=443263&r1=443262&r2=443263
==============================================================================
--- apr/apr/branches/1.2.x/network_io/unix/sockets.c (original)
+++ apr/apr/branches/1.2.x/network_io/unix/sockets.c Wed Sep 13 23:29:34 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);