summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2020-07-21 12:38:42 -0700
committerAndreas Schneider <asn@cryptomilk.org>2020-08-07 06:34:37 +0000
commitbc307f1e3704a2fbe839bba0ef310877ed2e5ee0 (patch)
tree6382686acadecfbd23c33200d7d2ea61a73b13c4
parent5ffcd883ddd4aef9ded18bee65562a8423e2f6c6 (diff)
downloadsamba-bc307f1e3704a2fbe839bba0ef310877ed2e5ee0.tar.gz
s3: libsmb: Use dns_lookup_list_async() instead of dns_lookup_list().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r--source3/libsmb/namequery.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 590113be44c..94c58d74436 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -2281,7 +2281,6 @@ fail:
return status;
}
-#if 0
/********************************************************
Use ads_dns_lookup_[a|aaaa]_send() calls to look up a
list of names asynchronously.
@@ -2668,8 +2667,8 @@ static void dns_lookup_list_aaaa_done(struct tevent_req *req)
state->num_addrs = num_addrs;
}
#endif
-#endif
+#if 0
/********************************************************
Resolve a list of DNS names to a list of IP addresses.
As this is a DC / LDAP / KDC lookup any IP address will
@@ -2749,6 +2748,7 @@ static NTSTATUS dns_lookup_list(TALLOC_CTX *ctx,
*pp_addrs = ret_addrs;
return NT_STATUS_OK;
}
+#endif
/********************************************************
Resolve via "hosts" method.
@@ -3029,11 +3029,12 @@ static NTSTATUS resolve_ads(TALLOC_CTX *ctx,
}
/* Lookup the addresses on the dns_lookup_list. */
- status = dns_lookup_list(ctx,
+ status = dns_lookup_list_async(ctx,
num_dns_names,
dns_lookup_names,
&num_dns_addrs,
- &dns_addrs);
+ &dns_addrs,
+ NULL);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(dcs);