summaryrefslogtreecommitdiffstats
path: root/pimd/pim_mroute.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-18 12:42:36 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-03-20 23:17:40 +0100
commit7bade8deea7988cb46705d9e898d021965011170 (patch)
tree7ffbdda8982353453bec4e3cd9f84a87e625e12e /pimd/pim_mroute.c
parentpimd: Note when rpf_update fails (diff)
downloadfrr-7bade8deea7988cb46705d9e898d021965011170.tar.xz
frr-7bade8deea7988cb46705d9e898d021965011170.zip
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_mroute.c')
-rw-r--r--pimd/pim_mroute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c
index 5ce786361..2e08ae28b 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();