summaryrefslogtreecommitdiffstats
path: root/proto/ospf/rt.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-08-05 20:06:30 +0200
committerOndrej Filip <feela@network.cz>2004-08-05 20:06:30 +0200
commit56e2a4b776b0d013f71bff9fbf8550442c11df91 (patch)
tree448a46b78711babe3a005dd991015a1535853918 /proto/ospf/rt.c
parent6236beab1ec5ba61487c418119e01a933e1cacee (diff)
downloadbird-56e2a4b776b0d013f71bff9fbf8550442c11df91.tar
bird-56e2a4b776b0d013f71bff9fbf8550442c11df91.zip
Bugfix in OSPF - BIRD sometimes failed during rt calculation with VLINKs.
Diffstat (limited to 'proto/ospf/rt.c')
-rw-r--r--proto/ospf/rt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index 6602124..8604ebe 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -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;