diff options
author | Günther Deschner <gd@samba.org> | 2007-02-15 00:03:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:57 -0500 |
commit | 7ad7847e5bbdd90fa6ae9ce91e5962f524ac2890 (patch) | |
tree | 542bc4f9b62a80bb8d680453844eec88dcef89c8 /source/libads | |
parent | 8462f323cf86f90b1bdf14a3953c5a4bda1b9533 (diff) | |
download | samba-7ad7847e5bbdd90fa6ae9ce91e5962f524ac2890.tar.gz samba-7ad7847e5bbdd90fa6ae9ce91e5962f524ac2890.tar.xz samba-7ad7847e5bbdd90fa6ae9ce91e5962f524ac2890.zip |
r21352: Let ads_upn_suffixes() return a pointer to an array of suffixes.
Guenther
Diffstat (limited to 'source/libads')
-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); } |