summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-02-15 00:03:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:57 -0500
commit5aa3b27949009bafe1e85d468b191f33c4c29293 (patch)
tree2f8e587d5a7a5fb56fb27dce623842a6b0758de5 /source3/libads
parent08726ffcd47eeb68eb7724e09d25322417517513 (diff)
downloadsamba-5aa3b27949009bafe1e85d468b191f33c4c29293.tar.gz
samba-5aa3b27949009bafe1e85d468b191f33c4c29293.tar.bz2
samba-5aa3b27949009bafe1e85d468b191f33c4c29293.zip
r21352: Let ads_upn_suffixes() return a pointer to an array of suffixes.
Guenther (This used to be commit 7ad7847e5bbdd90fa6ae9ce91e5962f524ac2890)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 949d167013..dfc68fdc2b 100644
--- a/source3/libads/ldap.c
+++ b/source3/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);
}