diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-29 17:11:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:07 -0500 |
commit | 8f0ea257b61f435060cfe6995e238c6d4b07de21 (patch) | |
tree | 75eebf2b1fa88a5e58c46a8fc332c7c3dd88b3c6 /source3 | |
parent | ae30a44bc03c0c92d3444efa0535babb73c08dea (diff) | |
download | samba-8f0ea257b61f435060cfe6995e238c6d4b07de21.tar.gz samba-8f0ea257b61f435060cfe6995e238c6d4b07de21.tar.bz2 samba-8f0ea257b61f435060cfe6995e238c6d4b07de21.zip |
r16685: Fix bug #3901 reported by jason@ncac.gwu.edu.
Jeremy.
(This used to be commit d48655d9c0b31d15327655140c021de29873d2c5)
Diffstat (limited to 'source3')
-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) { |