Skip to content

Commit

Permalink
Merge pull request #18285 from opensourcerouting/pim-cs
Browse files Browse the repository at this point in the history
pimd: fix null memory access on IGMP source limit
  • Loading branch information
donaldsharp authored Feb 28, 2025
2 parents 08af876 + cacdff7 commit 575dfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pimd/pim_igmpv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down

0 comments on commit 575dfe4

Please sign in to comment.