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_services.c | |
parent | 48f82b73c24d2486f10e588ebabce95873656d0e (diff) | |
download | sssd_unused-29b412285db72b0c735e8ad6cb933c029d2a27d9.tar.gz sssd_unused-29b412285db72b0c735e8ad6cb933c029d2a27d9.tar.xz sssd_unused-29b412285db72b0c735e8ad6cb933c029d2a27d9.zip |
Fix memory hierarchy when processing nested group memberships
https://fedorahosted.org/sssd/ticket/1186
Diffstat (limited to 'src/providers/ldap/sdap_async_services.c')
-rw-r--r-- | src/providers/ldap/sdap_async_services.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_services.c b/src/providers/ldap/sdap_async_services.c index b472e407..5bc04463 100644 --- a/src/providers/ldap/sdap_async_services.c +++ b/src/providers/ldap/sdap_async_services.c @@ -199,10 +199,10 @@ sdap_get_services_process(struct tevent_req *subreq) } /* Copy the new services into the list - * They're already allocated on 'state' */ for (i = 0; i < count; i++) { - state->services[state->count + i] = services[i]; + state->services[state->count + i] = + talloc_steal(state->services, services[i]); } state->count += count; |