summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/ldap.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 5258c8f42dc..c774b445411 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -1971,7 +1971,6 @@ ADS_STATUS ads_get_service_principal_names(TALLOC_CTX *mem_ctx,
{
ADS_STATUS status;
LDAPMessage *res = NULL;
- char *dn;
int count;
status = ads_find_machine_acct(ads,
@@ -1989,12 +1988,6 @@ ADS_STATUS ads_get_service_principal_names(TALLOC_CTX *mem_ctx,
goto done;
}
- dn = ads_get_dn(ads, mem_ctx, res);
- if (dn == NULL) {
- status = ADS_ERROR_LDAP(LDAP_NO_MEMORY);
- goto done;
- }
-
*spn_array = ads_pull_strings(ads,
mem_ctx,
res,