1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

s3: libsmb: Remove now unused get_kdc_list() (non-talloc version).

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
Jeremy Allison
2020-08-26 11:39:54 -07:00
committed by Noel Power
parent 11226af33e
commit b7182c4417
2 changed files with 0 additions and 36 deletions

View File

@ -4013,38 +4013,6 @@ NTSTATUS get_sorted_dc_list( const char *domain,
return NT_STATUS_OK;
}
/*********************************************************************
Get the KDC list - re-use all the logic in get_dc_list.
*********************************************************************/
NTSTATUS get_kdc_list( const char *realm,
const char *sitename,
struct ip_service **ip_list,
int *count)
{
bool ordered;
NTSTATUS status;
*count = 0;
*ip_list = NULL;
status = get_dc_list(realm, sitename, ip_list,
count, DC_KDC_ONLY, &ordered);
if (!NT_STATUS_IS_OK(status)) {
SAFE_FREE(*ip_list);
*count = 0;
return status;
}
/* only sort if we don't already have an ordered list */
if ( !ordered ) {
sort_service_list(*ip_list, *count);
}
return NT_STATUS_OK;
}
/*********************************************************************
Talloc version.
Get the KDC list - re-use all the logic in get_dc_list.

View File

@ -114,10 +114,6 @@ NTSTATUS get_sorted_dc_list( const char *domain,
struct ip_service **ip_list,
int *count,
bool ads_only );
NTSTATUS get_kdc_list( const char *realm,
const char *sitename,
struct ip_service **ip_list,
int *count);
NTSTATUS get_kdc_list_talloc(TALLOC_CTX *ctx,
const char *realm,
const char *sitename,