Revert "ospfd: Use route_node_lookup() instaed of route_node_get()"
This reverts commit c9b07581e0df8867499e97e08b382b6d3cc9c4c4.
See: http://patchwork.quagga.net/patch/410/
diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c
index 5c30809..e172e53 100644
--- a/ospfd/ospf_abr.c
+++ b/ospfd/ospf_abr.c
@@ -133,9 +133,7 @@
rn = route_top (area->ranges);
else
{
- rn = route_node_lookup (area->ranges, (struct prefix *) &p);
- if (!rn)
- return NULL;
+ rn = route_node_get (area->ranges, (struct prefix *) &p);
rn = route_next (rn);
}
diff --git a/ospfd/ospf_snmp.c b/ospfd/ospf_snmp.c
index 78435de..604766d 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -1994,9 +1994,7 @@
rn = route_top (ospf_snmp_vl_table);
else
{
- rn = route_node_lookup (ospf_snmp_vl_table, (struct prefix *) &lp);
- if (!rn)
- return NULL;
+ rn = route_node_get (ospf_snmp_vl_table, (struct prefix *) &lp);
rn = route_next (rn);
}