From: Jeremy Allison Date: Tue, 8 Sep 2020 23:31:18 +0000 (-0700) Subject: s3: utils: Make net_lookup_dc() use get_sorted_dc_list_sa(). X-Git-Tag: talloc-2.3.2~515 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fb56f3f4f637a179bfe90b8fefeb159b54d74c2;p=thirdparty%2Fsamba.git s3: utils: Make net_lookup_dc() use get_sorted_dc_list_sa(). Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- 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