]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: When we get nexthops back we may not have configured pim on all intfs
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 15 Jun 2017 17:53:04 +0000 (13:53 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 24 Jul 2017 17:51:40 +0000 (13:51 -0400)
Be aware that we may not have pim configured on all interfaces when
we have a failure situation.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_nht.c

index eb487b96268c00fa1f4247c660002d79dfeaf75a..150820fb85b1d1181c4cf7c0d0c49a055cc73717 100644 (file)
@@ -778,8 +778,10 @@ int pim_parse_nexthop_update(int command, struct zclient *zclient,
                                                        "%s: NHT pim nbr not found on interface %s nbr count:%d ",
                                                        __PRETTY_FUNCTION__,
                                                        ifp1->name,
-                                                       pim_ifp->pim_neighbor_list
-                                                               ->count);
+                                                       pim_ifp
+                                                               ? pim_ifp->pim_neighbor_list
+                                                                         ->count
+                                                               : 0);
                                        }
                                        // Mark nexthop address to 0 until PIM
                                        // Nbr is resolved.