summaryrefslogtreecommitdiffstats
path: root/ip6tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip6tables.c')
-rw-r--r--ip6tables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ip6tables.c b/ip6tables.c
index bce4b7bc..c69dd73e 100644
--- a/ip6tables.c
+++ b/ip6tables.c
@@ -528,6 +528,7 @@ addr_to_host(const struct in6_addr *addr)
memset(&saddr, 0, sizeof(struct sockaddr_in6));
in6addrcpy(&(saddr.sin6_addr),(struct in6_addr *)addr);
+ saddr.sin6_family = AF_INET6;
if ( (err=getnameinfo((struct sockaddr *)&saddr,
sizeof(struct sockaddr_in6),