summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2011-11-28 10:14:53 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-11-28 13:55:32 -0500
commit92ebfa89209b57ba1d9a202543ec32486036f6f0 (patch)
treeeffc63b137d44ceca9c32e52e4b98eef31fe735f
parent4ab12f71d781f45330ebaebe827a1d996713945f (diff)
downloadsssd-92ebfa89209b57ba1d9a202543ec32486036f6f0.tar.gz
sssd-92ebfa89209b57ba1d9a202543ec32486036f6f0.tar.bz2
sssd-92ebfa89209b57ba1d9a202543ec32486036f6f0.zip
Fixed uninitialized pointer read in netgroups processing
-rw-r--r--src/providers/ipa/ipa_netgroups.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_netgroups.c b/src/providers/ipa/ipa_netgroups.c
index ddebe61b..c2809519 100644
--- a/src/providers/ipa/ipa_netgroups.c
+++ b/src/providers/ipa/ipa_netgroups.c
@@ -597,6 +597,12 @@ static void ipa_netgr_members_process(struct tevent_req *subreq)
state->host_base_iter++;
ret = ipa_netgr_fetch_hosts(state, req);
table = state->new_hosts;
+ } else {
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("Invalid entity type given for processing: %d\n",
+ state->current_entity));
+ ret = EINVAL;
+ goto fail;
}
if (ret == EOK) {