diff options
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap.c | 8 |
1 files changed, 1 insertions, 7 deletions
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) { |