summaryrefslogtreecommitdiff
path: root/network_io/unix
diff options
context:
space:
mode:
Diffstat (limited to 'network_io/unix')
-rw-r--r--network_io/unix/sockaddr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/network_io/unix/sockaddr.c b/network_io/unix/sockaddr.c
index d1aaf4360..36948b516 100644
--- a/network_io/unix/sockaddr.c
+++ b/network_io/unix/sockaddr.c
@@ -612,6 +612,7 @@ APR_DECLARE(apr_status_t) apr_getnameinfo(char **hostname,
IN6_IS_ADDR_V4MAPPED(&sockaddr->sa.sin6.sin6_addr)) {
struct sockaddr_in tmpsa;
tmpsa.sin_family = AF_INET;
+ tmpsa.sin_port = 0;
tmpsa.sin_addr.s_addr = ((apr_uint32_t *)sockaddr->ipaddr_ptr)[3];
#ifdef SIN6_LEN
tmpsa.sin_len = sizeof(tmpsa);