From 4f5f5a1c843b92f5dd1c825be5faa788abfb04dd Mon Sep 17 00:00:00 2001 From: liuwentan Date: Wed, 20 Sep 2023 11:28:13 +0800 Subject: [PATCH] [PATCH]prevent possible null pointer --- src/maat_group.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/maat_group.c b/src/maat_group.c index b102146..9603374 100644 --- a/src/maat_group.c +++ b/src/maat_group.c @@ -922,7 +922,9 @@ static void verify_candidate_super_group_ids(struct maat_group_topology *group_t prev_group_id = *p; struct maat_group *group = group_topology_find_group(group_topo, *p); - assert(group != NULL); + if (NULL == group) { + continue; + } //if group's sub excl in candidate_group_ids int sub_excl_flag = 0;