]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes broken multi-area OSPF.
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 20 Jul 2011 21:46:03 +0000 (23:46 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 20 Jul 2011 21:46:03 +0000 (23:46 +0200)
proto/ospf/rt.c

index 9e3f9d7aaf28033f00a3706b692167d6ddc7ef24..78b1ebecdd815d91242d09aa4f7d24795b55c773 100644 (file)
@@ -213,7 +213,7 @@ rt_pos_to_ifa(struct ospf_area *oa, int pos)
 {
   struct ospf_iface *ifa;
   WALK_LIST(ifa, oa->po->iface_list)
-    if (pos >= ifa->rt_pos_beg && pos < ifa->rt_pos_end)
+    if (ifa->oa == oa && pos >= ifa->rt_pos_beg && pos < ifa->rt_pos_end)
       return ifa;
   return NULL;
 }
@@ -224,7 +224,7 @@ px_pos_to_ifa(struct ospf_area *oa, int pos)
 {
   struct ospf_iface *ifa;
   WALK_LIST(ifa, oa->po->iface_list)
-    if (pos >= ifa->px_pos_beg && pos < ifa->px_pos_end)
+    if (ifa->oa == oa && pos >= ifa->px_pos_beg && pos < ifa->px_pos_end)
       return ifa;
   return NULL;
 }