Merge pull request #16929 from Jafaral/pim-oil-fix

pimd: fix a possible use after free bug when doing pim trace
This commit is contained in:
Donald Sharp 2024-09-25 20:22:24 -04:00 committed by GitHub
commit f610ca5bc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,5 +193,5 @@ void tib_sg_gm_prune(struct pim_instance *pim, pim_sgaddr sg,
*/
pim_ifchannel_local_membership_del(oif, &sg);
pim_channel_oil_del(*oilp, __func__);
*oilp = pim_channel_oil_del(*oilp, __func__);
}