ospfd: Use route_node_lookup() instaed of route_node_get()

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c
index e172e53..5c30809 100644
--- a/ospfd/ospf_abr.c
+++ b/ospfd/ospf_abr.c
@@ -133,7 +133,9 @@
     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 604766d..78435de 100644
--- a/ospfd/ospf_snmp.c
+++ b/ospfd/ospf_snmp.c
@@ -1994,7 +1994,9 @@
     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);
     }