diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-10-31 13:08:23 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-10-31 10:15:17 -0400 |
commit | 8693a65bd0fd7ac5d7475d88bcce9600ccdbe012 (patch) | |
tree | 4b98ff76722f0c135cc8bafc070e7e620fc92a6d | |
parent | f7e736e233875dd46c3edfe04340b17d78dc1c98 (diff) | |
download | sssd_unused-8693a65bd0fd7ac5d7475d88bcce9600ccdbe012.tar.gz sssd_unused-8693a65bd0fd7ac5d7475d88bcce9600ccdbe012.tar.xz sssd_unused-8693a65bd0fd7ac5d7475d88bcce9600ccdbe012.zip |
Steal result onto mem_ctx in sdap_initgr_nested_get_direct_parents
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c index e6027f85..3cba5416 100644 --- a/src/providers/ldap/sdap_async_accounts.c +++ b/src/providers/ldap/sdap_async_accounts.c @@ -3240,7 +3240,6 @@ static int sdap_initgr_nested_get_direct_parents(TALLOC_CTX *mem_ctx, tmp_ctx = talloc_new(NULL); if (!tmp_ctx) return ENOMEM; - direct_groups = talloc_zero_array(tmp_ctx, struct sysdb_attrs *, ngroups + 1); if (!direct_groups) { @@ -3282,7 +3281,7 @@ static int sdap_initgr_nested_get_direct_parents(TALLOC_CTX *mem_ctx, DEBUG(9, ("The group [%s] has %d direct parents\n", orig_dn, ndirect)); - *_direct_parents = direct_groups; + *_direct_parents = talloc_steal(mem_ctx, direct_groups); *_ndirect = ndirect; ret = EOK; done: |