From b11e234147e7d5af674316898f749a3e3500914f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 22 May 2017 13:02:17 -0400 Subject: [PATCH] pimd: Fix crash associated with pim_ifp not actually being created yet Signed-off-by: Donald Sharp --- pimd/pim_zebra.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index 6f915bd98a..5b3380c8e2 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -292,8 +292,7 @@ static int pim_zebra_if_address_add(int command, struct zclient *zclient, struct listnode *ifnode; struct interface *ifp; - for (ALL_LIST_ELEMENTS_RO(vrf_iflist(pim_ifp->pim->vrf_id), - ifnode, ifp)) { + for (ALL_LIST_ELEMENTS_RO(vrf_iflist(vrf_id), ifnode, ifp)) { if (!if_is_loopback(ifp) && if_is_operative(ifp)) pim_if_addr_add_all(ifp); } -- 2.39.5