summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_abr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_abr.c')
-rw-r--r--ospfd/ospf_abr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c
index 92282514..46fb7aaf 100644
--- a/ospfd/ospf_abr.c
+++ b/ospfd/ospf_abr.c
@@ -779,15 +779,15 @@ ospf_abr_nexthops_belong_to_area (struct ospf_route *or,
struct ospf_area *area)
{
listnode node;
+ struct ospf_path *path;
- for (node = listhead (or->path); node; nextnode (node))
+ LIST_LOOP (or->paths, path, node)
{
- struct ospf_path *path = node->data;
struct ospf_interface *oi = path->oi;
if (oi != NULL)
- if (oi->area == area)
- return 1;
+ if (oi->area == area)
+ return 1;
}
return 0;