summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2012-01-18 11:33:25 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-02-06 08:25:22 -0500
commitc32484c393dac7f8dda6d2512e9aa51864abd8fe (patch)
tree0d32365182d39128bd983884714225734660e79a /src
parent71ad247500b417836a1a2edec257a4433a7c415f (diff)
downloadsssd-c32484c393dac7f8dda6d2512e9aa51864abd8fe.tar.gz
sssd-c32484c393dac7f8dda6d2512e9aa51864abd8fe.tar.xz
sssd-c32484c393dac7f8dda6d2512e9aa51864abd8fe.zip
Fixed minor memory-hierarchy-related issue in IPA HBAC
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_hbac_hosts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_hbac_hosts.c b/src/providers/ipa/ipa_hbac_hosts.c
index d672760e9..329fdc884 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++;
}