diff options
Diffstat (limited to 'source3/utils/net_dns.c')
-rw-r--r-- | source3/utils/net_dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_dns.c b/source3/utils/net_dns.c index fb6644d6b2..14d45e2b0f 100644 --- a/source3/utils/net_dns.c +++ b/source3/utils/net_dns.c @@ -167,7 +167,7 @@ int get_my_ip_address( struct sockaddr_storage **pp_ss ) continue; } #if defined(HAVE_IPV6) - if ((nics[i].ip.ss_family == AF_INET)) { + if ((nics[i].ip.ss_family == AF_INET6)) { memcpy(&list[count++], &nics[i].ip, sizeof(struct sockaddr_storage)); } else |