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:34:38 +0200
commit599c5f1cf430224c848cd11a144aebe49c815766 (patch)
tree4faf12e31e6b88a817a0816dd4ce809bab2ce5fb
parentf25e4324c697c5abc4edc5cc0f34a5952248749a (diff)
downloadsssd-599c5f1cf430224c848cd11a144aebe49c815766.tar.gz
sssd-599c5f1cf430224c848cd11a144aebe49c815766.tar.xz
sssd-599c5f1cf430224c848cd11a144aebe49c815766.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) {