diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-02-14 12:30:55 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-14 09:43:14 -0500 |
commit | 29b412285db72b0c735e8ad6cb933c029d2a27d9 (patch) | |
tree | 658a19633fcfafff1243831e8ac904a07317bb16 /src/providers/ldap/sdap_async_groups.c | |
parent | 48f82b73c24d2486f10e588ebabce95873656d0e (diff) | |
download | sssd-29b412285db72b0c735e8ad6cb933c029d2a27d9.tar.gz sssd-29b412285db72b0c735e8ad6cb933c029d2a27d9.tar.xz sssd-29b412285db72b0c735e8ad6cb933c029d2a27d9.zip |
Fix memory hierarchy when processing nested group memberships
https://fedorahosted.org/sssd/ticket/1186
Diffstat (limited to 'src/providers/ldap/sdap_async_groups.c')
-rw-r--r-- | src/providers/ldap/sdap_async_groups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c index feb13db98..061a99c8e 100644 --- a/src/providers/ldap/sdap_async_groups.c +++ b/src/providers/ldap/sdap_async_groups.c @@ -1323,10 +1323,10 @@ static void sdap_get_groups_process(struct tevent_req *subreq) } /* Copy the new groups into the list - * They're already allocated on 'state' */ for (i = 0; i < count; i++) { - state->groups[state->count + i] = groups[i]; + state->groups[state->count + i] = + talloc_steal(state->groups, groups[i]); } state->count += count; |