diff options
author | Jeremy Allison <jra@samba.org> | 2009-07-28 18:02:10 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-07-28 18:02:10 -0700 |
commit | 2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560 (patch) | |
tree | cc97643e148afa6d31e7dddeec800bb50179372d /source3/libsmb | |
parent | 285edf6a5986eb3a1f831f4b260afda0bb14c51e (diff) | |
download | samba-2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560.tar.gz samba-2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560.tar.bz2 samba-2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560.zip |
(Hopefully) fix the problem Kai reported with
net ads leave and IPv6. Ensure all DC lookups
prefer IPv4.
Jeremy.
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/dsgetdcname.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c index 3e0f4977aa..de020d4791 100644 --- a/source3/libsmb/dsgetdcname.c +++ b/source3/libsmb/dsgetdcname.c @@ -613,7 +613,8 @@ static NTSTATUS discover_dc_dns(TALLOC_CTX *mem_ctx, /* If we don't have an IP list for a name, lookup it up */ if (!dcs[i].ss_s) { - interpret_string_addr(&r->ss, dcs[i].hostname, 0); + interpret_string_addr_prefer_ipv4(&r->ss, + dcs[i].hostname, 0); i++; j = 0; } else { @@ -973,7 +974,7 @@ static NTSTATUS process_dc_netbios(TALLOC_CTX *mem_ctx, ip_list.ss = dclist[i].ss; ip_list.port = 0; - if (!interpret_string_addr(&ss, dclist[i].hostname, AI_NUMERICHOST)) { + if (!interpret_string_addr_prefer_ipv4(&ss, dclist[i].hostname, AI_NUMERICHOST)) { return NT_STATUS_UNSUCCESSFUL; } |