summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-08-07 10:34:52 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-07 11:36:50 +0200
commit9615f4c3c6f6dcc50ee7d4e50020549a2ff720c0 (patch)
tree252b20944c51798be96137bc4f87156e794abe19 /src
parent48d7840cae22c5ff4d786149b0d8ecee7efb8306 (diff)
downloadsssd-9615f4c3c6f6dcc50ee7d4e50020549a2ff720c0.tar.gz
sssd-9615f4c3c6f6dcc50ee7d4e50020549a2ff720c0.tar.bz2
sssd-9615f4c3c6f6dcc50ee7d4e50020549a2ff720c0.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c2
1 files changed, 1 insertions, 1 deletions
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) {