From 9615f4c3c6f6dcc50ee7d4e50020549a2ff720c0 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 7 Aug 2013 10:34:52 +0200 Subject: Fix memory context for a state member primary_name was allocated on a temporary memory context but as it is a member of the state struct it should belong to the memory context of the state. --- src/providers/ldap/sdap_async_initgroups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c index ec1cf3e6..5242c1ad 100644 --- a/src/providers/ldap/sdap_async_initgroups.c +++ b/src/providers/ldap/sdap_async_initgroups.c @@ -2185,7 +2185,7 @@ static errno_t rfc2307bis_nested_groups_step(struct tevent_req *req) goto done; } - ret = sdap_get_group_primary_name(tmp_ctx, state->opts, + ret = sdap_get_group_primary_name(state, state->opts, state->groups[state->group_iter], state->dom, &state->primary_name); if (ret != EOK) { -- cgit