View | Details | Raw Unified | Return to bug 223288 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-src_network.c (+16 lines)
Line 0 Link Here
1
--- src/network.c.orig	2017-10-28 14:00:17 UTC
2
+++ src/network.c
3
@@ -77,9 +77,13 @@ static void network_host_normalize_addr_
4
     if (addr->plain.sa_family == AF_INET6)
5
         buffer_append_string_len(host, CONST_STR_LEN("]"));
6
     if (addr->plain.sa_family != AF_UNIX) {
7
+#ifdef HAVE_IPV6
8
         unsigned short port = (addr->plain.sa_family == AF_INET)
9
           ? ntohs(addr->ipv4.sin_port)
10
           : ntohs(addr->ipv6.sin6_port);
11
+#elif
12
+	unsigned short port = ntohs(addr->ipv6.sin6_port);
13
+#endif
14
         buffer_append_string_len(host, CONST_STR_LEN(":"));
15
         buffer_append_int(host, (int)port);
16
     }

Return to bug 223288