]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Remove now unused get_kdc_list() (non-talloc version).
authorJeremy Allison <jra@samba.org>
Wed, 26 Aug 2020 18:39:54 +0000 (11:39 -0700)
committerNoel Power <npower@samba.org>
Mon, 7 Sep 2020 13:23:40 +0000 (13:23 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/libsmb/namequery.c
source3/libsmb/namequery.h

index 7c635f40f80bebb430155cb4a34e19476ba69606..23f816401c550694fe59e51e25b810fe0397279f 100644 (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.
index 94d3c54601763cf34cadf8a20e38f53fd604541b..38c92cebccb42558b5d0c746d61d872b301f65e5 100644 (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,