Skip to content

Commit

Permalink
Merge pull request #17635 from opensourcerouting/pim6-embedded-crash
Browse files Browse the repository at this point in the history
pim6d: fix crash on clear ipv6 mroute
  • Loading branch information
Jafaral authored Dec 13, 2024
2 parents b28ee72 + 3b0b1ad commit 330e2c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pimd/pim6_mld.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static void gm_sg_update(struct gm_sg *sg, bool has_expired)
* this data structure.
*/
if (sg->oil)
pim_channel_oil_del(sg->oil, __func__);
sg->oil = pim_channel_oil_del(sg->oil, __func__);

/* multiple paths can lead to the last state going away;
* t_sg_expire can still be running if we're arriving from
Expand Down
7 changes: 1 addition & 6 deletions pimd/pim_tib.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@ bool tib_sg_gm_join(struct pim_instance *pim, pim_sgaddr sg,
return false;
}

if (!*oilp) {
if (!*oilp)
*oilp = tib_sg_oil_setup(pim, sg, oif);
#if PIM_IPV == 6
if (pim_embedded_rp_is_embedded(&sg.grp))
(*oilp)->oil_ref_count--;
#endif /* PIM_IPV == 6 */
}
if (!*oilp)
return false;

Expand Down

0 comments on commit 330e2c6

Please sign in to comment.