forked from Mirror/frr
bgpd: sanity check when updating nexthop from bgp to zebra
nexthop may sometimes not be passed through zebra, like for onlink messages. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
c4d466c830
commit
ee9633ed87
|
@ -1143,7 +1143,8 @@ static bool update_ipv6nh_for_route_install(int nh_othervrf, struct bgp *nh_bgp,
|
||||||
api_nh->ifindex = 0;
|
api_nh->ifindex = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
api_nh->gate.ipv6 = *nexthop;
|
if (nexthop)
|
||||||
|
api_nh->gate.ipv6 = *nexthop;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue