diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2025-02-28 11:45:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-28 11:45:58 -0500 |
| commit | 575dfe44221e6902ff986217a61d42eb52be1c2c (patch) | |
| tree | 57578de6d9a6c9e243d74979ec232ec1715c8fe5 | |
| parent | 08af876bdc80612812f07e96e9eb0694e1f4c499 (diff) | |
| parent | cacdff75a6fc9c4fa983408c6035d6763161788a (diff) | |
Merge pull request #18285 from opensourcerouting/pim-cs
pimd: fix null memory access on IGMP source limit
| -rw-r--r-- | pimd/pim_igmpv3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c index 2de2b32688..3cbab499db 100644 --- a/pimd/pim_igmpv3.c +++ b/pimd/pim_igmpv3.c @@ -843,7 +843,7 @@ static void toex_incl(struct gm_group *group, int num_sources, /* Lookup reported source (B) */ source = igmp_get_source_by_addr(group, *src_addr, &new); - if (!new) { + if (!new && source != NULL) { /* If found, clear deletion flag: (A*B) */ IGMP_SOURCE_DONT_DELETE(source->source_flags); /* and set SEND flag (A*B) */ |
