From 7bade8deea7988cb46705d9e898d021965011170 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 18 Mar 2020 07:42:36 -0400 Subject: [PATCH] pimd: Prevent uninited use of tmp_oil in pim_mroute_add There exists a path where tmp_oil is used uninited, prevent this from happening. Signed-off-by: Donald Sharp --- pimd/pim_mroute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index 5ce7863611..2e08ae28be 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -961,7 +961,7 @@ static inline void pim_mroute_copy(struct mfcctl *oil, static int pim_mroute_add(struct channel_oil *c_oil, const char *name) { struct pim_instance *pim = c_oil->pim; - struct mfcctl tmp_oil; + struct mfcctl tmp_oil = { {0} }; int err; pim->mroute_add_last = pim_time_monotonic_sec(); -- 2.39.5