summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--network_io/unix/sockets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/network_io/unix/sockets.c b/network_io/unix/sockets.c
index 8f59b8b40..66caeb73a 100644
--- a/network_io/unix/sockets.c
+++ b/network_io/unix/sockets.c
@@ -156,6 +156,7 @@ apr_status_t apr_socket_accept(apr_socket_t **new, apr_socket_t *sock,
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);