mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:19:13 +00:00
Merge pull request #4148 from donaldsharp/ospf6_list_headinator
ospf6d: listhead returns a listnode *
This commit is contained in:
commit
3127c0ace3
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user