Fix typo noticed by David Disseldorp <ddiss@sgi.com>. AF_INET should be AF_INET6...
authorJeremy Allison <jra@samba.org>
Wed, 30 Apr 2008 16:28:47 +0000 (09:28 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 30 Apr 2008 16:28:47 +0000 (09:28 -0700)
Jeremy.
(This used to be commit 767740a914c7ebeb88886f520380b7fa365e315d)

source3/utils/net_dns.c

index fb6644d6b24cd5f9f8171603f9606f0b7e5eb191..14d45e2b0fcf4b9a6596fa55cf7ce065a88f3e39 100644 (file)
@@ -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