summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-07-20 23:46:03 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-07-20 23:46:03 +0200
commit9008579b97239564e1dcac855cf726fa9ab7dabd (patch)
treeff0d8719b434842a9ec08be7ef2765aa87deae27
parentc49490f8c096ef1379f08e7d70cc24f0c28b80ef (diff)
Fixes broken multi-area OSPF.
-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 9e3f9d7a..78b1ebec 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -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;
}