Merge pull request #18285 from opensourcerouting/pim-cs

pimd: fix null memory access on IGMP source limit
This commit is contained in:
Donald Sharp 2025-02-28 11:45:58 -05:00 committed by GitHub
commit 575dfe4422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -843,7 +843,7 @@ static void toex_incl(struct gm_group *group, int num_sources,
/* Lookup reported source (B) */ /* Lookup reported source (B) */
source = igmp_get_source_by_addr(group, *src_addr, &new); source = igmp_get_source_by_addr(group, *src_addr, &new);
if (!new) { if (!new && source != NULL) {
/* If found, clear deletion flag: (A*B) */ /* If found, clear deletion flag: (A*B) */
IGMP_SOURCE_DONT_DELETE(source->source_flags); IGMP_SOURCE_DONT_DELETE(source->source_flags);
/* and set SEND flag (A*B) */ /* and set SEND flag (A*B) */