summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ospfd/ospf_abr.c4
-rw-r--r--ospfd/ospf_snmp.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c
index e172e53c..5c308092 100644
--- a/ospfd/ospf_abr.c
+++ b/ospfd/ospf_abr.c
@@ -133,7 +133,9 @@ ospf_area_range_lookup_next (struct ospf_area *area,
rn = route_top (area->ranges);
else
{
- rn = route_node_get (area->ranges, (struct prefix *) &p);
+ rn = route_node_lookup (area->ranges, (struct prefix *) &p);
+ if (!rn)
+ return NULL;
rn = route_next (rn);
}
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 604766d8..78435de5 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -1994,7 +1994,9 @@ ospf_snmp_vl_lookup_next (struct in_addr *area_id, struct in_addr *neighbor,
rn = route_top (ospf_snmp_vl_table);
else
{
- rn = route_node_get (ospf_snmp_vl_table, (struct prefix *) &lp);
+ rn = route_node_lookup (ospf_snmp_vl_table, (struct prefix *) &lp);
+ if (!rn)
+ return NULL;
rn = route_next (rn);
}