mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +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;
|
||||
|
||||
if (route) {
|
||||
if ((nh = (struct ospf6_nexthop *)listhead(route->nh_list)))
|
||||
return (nh->ifindex);
|
||||
nh = listnode_head(route->nh_list);
|
||||
if (nh)
|
||||
return nh->ifindex;
|
||||
}
|
||||
|
||||
return (-1);
|
||||
|
Loading…
Reference in New Issue
Block a user