From 56e2a4b776b0d013f71bff9fbf8550442c11df91 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 5 Aug 2004 18:06:30 +0000 Subject: Bugfix in OSPF - BIRD sometimes failed during rt calculation with VLINKs. --- proto/ospf/rt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/ospf') 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; -- cgit v1.2.3