summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-09-25 20:22:24 -0400
committerGitHub <noreply@github.com>2024-09-25 20:22:24 -0400
commitf610ca5bc368b68508004a2f60d9ed7095ea8d8c (patch)
treeb9585db1cfe728590efc81650ff026b8be837c06
parent51b19f9ce371e41add3772594dacf8e1ee7dfb96 (diff)
parent7bd03cf3783b4dd815ee18ddf521e032cdfda645 (diff)
Merge pull request #16929 from Jafaral/pim-oil-fix
pimd: fix a possible use after free bug when doing pim trace
-rw-r--r--pimd/pim_tib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_tib.c b/pimd/pim_tib.c
index e1cc69efa9..ac07154f86 100644
--- a/pimd/pim_tib.c
+++ b/pimd/pim_tib.c
@@ -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__);
}