summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
Diffstat (limited to 'proto/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;
}