Signed-off-by: F. Aragon <paco@voltanet.io>
struct ospf_route *newor)
{
struct route_node *rn;
- struct ospf_route * or ;
+ struct ospf_route *or;
struct ospf_path *op;
struct ospf_path *newop;
struct listnode *n1;
route_unlock_node(rn);
or = rn->info;
+
+ assert(or);
+
if (or->path_type != newor->path_type)
return 0;
return 0;
}
+ assert(or->paths);
+
if (or->paths->count != newor->paths->count)
return 0;
* the Interface type is SSM we don't need to
* do anything here
*/
- if ((pim_rpf_addr_is_inaddr_none(rpg)) || (!pim_ifp)
+ if (!rpg || (pim_rpf_addr_is_inaddr_none(rpg))
|| (!(PIM_I_am_DR(pim_ifp)))) {
if (PIM_DEBUG_MROUTE_DETAIL)
zlog_debug(