diff options
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index b4baee148a..de8af3c9df 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -4413,7 +4413,8 @@ int rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p, return -1; } - if (ifp->ifindex == ng->nexthop->ifindex) + if (ng && ng->nexthop && + ifp->ifindex == ng->nexthop->ifindex) re->type = ZEBRA_ROUTE_CONNECT; } } |
