0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-19 20:05:21 +00:00

Bugfix in OSPF - BIRD sometimes failed during rt calculation with VLINKs.

This commit is contained in:
Ondrej Filip 2004-08-05 18:06:30 +00:00
parent 6236beab1e
commit 56e2a4b776

View File

@ -842,8 +842,8 @@ calc_next_hop(struct top_hash_entry *en, struct top_hash_entry *par,
if (en->lsa.rt == myrid)
{
WALK_LIST(ifa, po->iface_list)
if (ipa_compare
(ifa->iface->addr->ip, ipa_from_u32(en->lsa.id)) == 0)
if (ifa->iface && (ipa_compare
(ifa->iface->addr->ip, ipa_from_u32(en->lsa.id)) == 0))
{
en->nhi = ifa->iface;
return;