]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in OSPF - BIRD sometimes failed during rt calculation with VLINKs.
authorOndrej Filip <feela@network.cz>
Thu, 5 Aug 2004 18:06:30 +0000 (18:06 +0000)
committerOndrej Filip <feela@network.cz>
Thu, 5 Aug 2004 18:06:30 +0000 (18:06 +0000)
proto/ospf/rt.c

index 6602124bddbc4bb14799db960d33a915dcc3e941..8604ebe77748eefd03f0168cda1aac39711a43b4 100644 (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;