summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-08-26 15:42:58 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-08-26 17:25:42 +0200
commit6656b818d1b4400052aee33ab50385abbe1b1a6a (patch)
tree997fd56db0c5b80dab3e9b11d45140e7e2e7d471
parent97e5ea0490f05107c5d4d1773841b4a533b737f2 (diff)
downloadsssd-6656b818d1b4400052aee33ab50385abbe1b1a6a.tar.gz
sssd-6656b818d1b4400052aee33ab50385abbe1b1a6a.tar.xz
sssd-6656b818d1b4400052aee33ab50385abbe1b1a6a.zip
SDAP: Use different talloc_context for array of names
It will be easier to steal whole array to another talloc context Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> (cherry picked from commit 174e9ec6f88d709b6e9481ed06a322c0fc495842)
-rw-r--r--src/providers/ldap/sdap_async_initgroups_ad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups_ad.c b/src/providers/ldap/sdap_async_initgroups_ad.c
index 351aca5da..acddbcaf3 100644
--- a/src/providers/ldap/sdap_async_initgroups_ad.c
+++ b/src/providers/ldap/sdap_async_initgroups_ad.c
@@ -1211,7 +1211,7 @@ sdap_ad_tokengroups_update_posix_members(TALLOC_CTX *mem_ctx,
goto done;
}
- valid_groups[num_valid_groups] = sysdb_group_strdn(tmp_ctx,
+ valid_groups[num_valid_groups] = sysdb_group_strdn(valid_groups,
domain->name,
name);
if (valid_groups[num_valid_groups] == NULL) {