From 8f0ea257b61f435060cfe6995e238c6d4b07de21 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 29 Jun 2006 17:11:14 +0000 Subject: r16685: Fix bug #3901 reported by jason@ncac.gwu.edu. Jeremy. (This used to be commit d48655d9c0b31d15327655140c021de29873d2c5) --- source3/libads/ldap.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source3') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 397d8c02f0..db2a51307a 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1408,7 +1408,7 @@ ADS_STATUS ads_add_service_principal_name(ADS_STRUCT *ads, const char *machine_n ADS_STATUS ret; TALLOC_CTX *ctx; LDAPMessage *res = NULL; - char *host_spn, *psp1, *psp2, *psp3; + char *psp1, *psp2, *psp3; ADS_MODLIST mods; fstring my_fqdn; char *dn_string = NULL; @@ -1433,12 +1433,6 @@ ADS_STATUS ads_add_service_principal_name(ADS_STRUCT *ads, const char *machine_n name_to_fqdn(my_fqdn, machine_name); strlower_m(my_fqdn); - if (!(host_spn = talloc_asprintf(ctx, "HOST/%s", my_fqdn))) { - talloc_destroy(ctx); - ads_msgfree(ads, res); - return ADS_ERROR(LDAP_NO_MEMORY); - } - /* Add the extra principal */ psp1 = talloc_asprintf(ctx, "%s/%s", spn, machine_name); if (!psp1) { -- cgit