summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-11-14 13:21:43 +0100
committerGünther Deschner <gd@samba.org>2014-11-28 16:46:20 +0100
commit373d58c91d6cba1e6e67a067c2ba60e507424b4d (patch)
tree257f5abd58e5ea5a210a69e39c8621b140ae3edf
parent8ce7904abd29b1bf01a7a040871bb31b844089d8 (diff)
downloadsamba-373d58c91d6cba1e6e67a067c2ba60e507424b4d.tar.gz
s3-libads: remove unused dn from ads_get_service_principal_names().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri Nov 28 16:46:20 CET 2014 on sn-devel-104
-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,