Merge pull request #4148 from donaldsharp/ospf6_list_headinator

ospf6d: listhead returns a listnode *
This commit is contained in:
Mark Stapp 2019-04-17 08:21:24 -04:00 committed by GitHub
commit 3127c0ace3

View File

@ -331,8 +331,9 @@ int ospf6_route_get_first_nh_index(struct ospf6_route *route)
struct ospf6_nexthop *nh; struct ospf6_nexthop *nh;
if (route) { if (route) {
if ((nh = (struct ospf6_nexthop *)listhead(route->nh_list))) nh = listnode_head(route->nh_list);
return (nh->ifindex); if (nh)
return nh->ifindex;
} }
return (-1); return (-1);