struct pim_iface_upstream_switch *pius;
struct listnode *node, *nnode;
+ /* Old interface is pim disabled */
+ if (!pim_ifp)
+ return NULL;
+
for (ALL_LIST_ELEMENTS(pim_ifp->upstream_switch_list, node, nnode, pius))
{
if (pius->address.s_addr == rpf->rpf_addr.u.prefix4.s_addr)
*/
/* send Prune(S,G) to the old upstream neighbor */
- pim_jp_agg_add_group (opius->us, up, false);
+ if (opius)
+ pim_jp_agg_add_group (opius->us, up, false);
/* send Join(S,G) to the current upstream neighbor */
pim_jp_agg_add_group (npius->us, up, true);