From c32484c393dac7f8dda6d2512e9aa51864abd8fe Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Wed, 18 Jan 2012 11:33:25 -0500 Subject: Fixed minor memory-hierarchy-related issue in IPA HBAC --- src/providers/ipa/ipa_hbac_hosts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/providers') diff --git a/src/providers/ipa/ipa_hbac_hosts.c b/src/providers/ipa/ipa_hbac_hosts.c index d672760e..329fdc88 100644 --- a/src/providers/ipa/ipa_hbac_hosts.c +++ b/src/providers/ipa/ipa_hbac_hosts.c @@ -361,7 +361,8 @@ ipa_hbac_hostgroup_info_done(struct tevent_req *subreq) i = 0; while(state->hostgroup_count < hostgroups_total) { - state->hostgroups[state->hostgroup_count] = hostgroups[i]; + state->hostgroups[state->hostgroup_count] = + talloc_steal(state->hostgroups, hostgroups[i]); state->hostgroup_count++; i++; } -- cgit