summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuwentan <[email protected]>2023-09-20 11:28:13 +0800
committerliuwentan <[email protected]>2023-09-20 11:28:13 +0800
commit4f5f5a1c843b92f5dd1c825be5faa788abfb04dd (patch)
treec1dc2827ff7220e2f021c63a01d39284b544fe1b
parent521dafe887049f2e663aa9b2915443598826a93f (diff)
[PATCH]prevent possible null pointer
-rw-r--r--src/maat_group.c4
1 files changed, 3 insertions, 1 deletions
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;