From 1fb56f3f4f637a179bfe90b8fefeb159b54d74c2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 8 Sep 2020 16:31:18 -0700 Subject: [PATCH] s3: utils: Make net_lookup_dc() use get_sorted_dc_list_sa(). Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- source3/utils/net_lookup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index 1476e0aa95f..46acd31f379 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -183,7 +183,7 @@ static int net_lookup_ldap(struct net_context *c, int argc, const char **argv) static int net_lookup_dc(struct net_context *c, int argc, const char **argv) { - struct ip_service *ip_list = NULL; + struct samba_sockaddr *sa_list = NULL; struct sockaddr_storage ss; char *pdc_str = NULL; const char *domain = NULL; @@ -214,10 +214,10 @@ static int net_lookup_dc(struct net_context *c, int argc, const char **argv) d_printf("%s\n", pdc_str); sitename = sitename_fetch(talloc_tos(), domain); - status = get_sorted_dc_list(talloc_tos(), + status = get_sorted_dc_list_sa(talloc_tos(), domain, sitename, - &ip_list, + &sa_list, &count, sec_ads); if (!NT_STATUS_IS_OK(status)) { @@ -227,11 +227,11 @@ static int net_lookup_dc(struct net_context *c, int argc, const char **argv) } TALLOC_FREE(sitename); for (i=0;i