summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-04-30 09:28:47 -0700
committerJeremy Allison <jra@samba.org>2008-04-30 09:28:47 -0700
commit82d7429a27b5ff5a269d1f8ffab22e2172fc3be0 (patch)
tree2a3d3db9222a17d3ba2e1c357c8a70e59fd3df0e /source3
parentc413c97ff4b646a260bc4665069f4e99d50ecd1c (diff)
downloadsamba-82d7429a27b5ff5a269d1f8ffab22e2172fc3be0.tar.gz
samba-82d7429a27b5ff5a269d1f8ffab22e2172fc3be0.tar.bz2
samba-82d7429a27b5ff5a269d1f8ffab22e2172fc3be0.zip
Fix typo noticed by David Disseldorp <ddiss@sgi.com>. AF_INET should be AF_INET6 in this case.
Jeremy. (This used to be commit 767740a914c7ebeb88886f520380b7fa365e315d)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_dns.c2
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