diff options
author | Günther Deschner <gd@samba.org> | 2007-02-15 00:03:38 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2007-02-15 00:03:38 +0000 |
commit | a69bd413e201a91447f0e8ea99d95eaa2d581fb1 (patch) | |
tree | 3af1c5e63e71f43dd634ed38a68a70701dc5f078 | |
parent | 9dddb594cdf816b16ed5eb83dbd1bc761a7b600f (diff) | |
download | samba-a69bd413e201a91447f0e8ea99d95eaa2d581fb1.tar.gz samba-a69bd413e201a91447f0e8ea99d95eaa2d581fb1.tar.xz samba-a69bd413e201a91447f0e8ea99d95eaa2d581fb1.zip |
r21352: Let ads_upn_suffixes() return a pointer to an array of suffixes.
Guenther
-rw-r--r-- | source/libads/ldap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c index 949d167013f..dfc68fdc2b1 100644 --- a/source/libads/ldap.c +++ b/source/libads/ldap.c @@ -2620,10 +2620,10 @@ ADS_STATUS ads_site_dn_for_machine(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const c * @param ads connection to ads server * @param mem_ctx Pointer to talloc context * @param suffixes Pointer to an array of suffixes - * @param site_name Pointer to the number of suffixes + * @param num_suffixes Pointer to the number of suffixes * @return status of search **/ -ADS_STATUS ads_upn_suffixes(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char **suffixes, size_t *num_suffixes) +ADS_STATUS ads_upn_suffixes(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char ***suffixes, size_t *num_suffixes) { ADS_STATUS status; LDAPMessage *res; @@ -2658,8 +2658,8 @@ ADS_STATUS ads_upn_suffixes(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char **suffixe return ADS_ERROR(LDAP_NO_SUCH_OBJECT); } - suffixes = ads_pull_strings(ads, mem_ctx, res, "uPNSuffixes", num_suffixes); - if (suffixes == NULL) { + (*suffixes) = ads_pull_strings(ads, mem_ctx, res, "uPNSuffixes", num_suffixes); + if ((*suffixes) == NULL) { ads_msgfree(ads, res); return ADS_ERROR(LDAP_NO_MEMORY); } |