[patch] 3.2-test - ipv6 in get_my_ip_address()

David Disseldorp ddiss at sgi.com
Wed Apr 30 04:12:57 GMT 2008


Someone forgot a 6?

Cheers, Dave


--- a/source/utils/net_dns.c
+++ b/source/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


More information about the samba-technical mailing list