]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_flood.c
lib: enforce vrf_name_to_id by returning default_vrf when name is null
[mirror_frr.git] / ospfd / ospf_flood.c
index b4e9dda58a106f51347399df61be7d0cad0caf03..714c47b4e67c5d7ac511f4ea4242e40df1433710 100644 (file)
@@ -91,7 +91,7 @@ struct external_info *ospf_external_info_check(struct ospf *ospf,
        p.prefix = lsa->data->id;
        p.prefixlen = ip_masklen(al->mask);
 
-       for (type = 0; type < ZEBRA_ROUTE_MAX; type++) {
+       for (type = 0; type <= ZEBRA_ROUTE_MAX; type++) {
                int redist_on = 0;
 
                redist_on =
@@ -539,7 +539,6 @@ static int ospf_flood_through_interface(struct ospf_interface *oi,
            IP addresses for these packets are the neighbors' IP
            addresses.   */
        if (oi->type == OSPF_IFTYPE_NBMA) {
-               struct route_node *rn;
                struct ospf_neighbor *nbr;
 
                for (rn = route_top(oi->nbrs); rn; rn = route_next(rn))