From 3f07087b695d48f1985f2f7387315616dcf14436 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 24 Aug 2016 15:35:09 -0400 Subject: [PATCH] pimd: Do not crash when attempting to install a mroute. When installing a mroute on rpf change make sure that we have oil for it at this time. Ticket: CM-12636 Signed-off-by: Donald Sharp --- pimd/pim_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index aa1121c8a2..8a466e4035 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -347,7 +347,7 @@ static void scan_upstream_rpf_cache() * where the mroute has not been installed * so install it. */ - if (!up->channel_oil->installed) + if (up->channel_oil && !up->channel_oil->installed) pim_mroute_add (up->channel_oil); /* -- 2.39.5