]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in previous bugfix.
authorOndrej Filip <feela@network.cz>
Fri, 18 Feb 2005 19:36:32 +0000 (19:36 +0000)
committerOndrej Filip <feela@network.cz>
Fri, 18 Feb 2005 19:36:32 +0000 (19:36 +0000)
proto/ospf/rt.c

index b3de8bfde95e645a309e61350bf1149b6f0a87a6..6fe6aedb85d51e814bbce8049ebf2cec0b191b07 100644 (file)
@@ -121,7 +121,7 @@ ri_install(struct proto_ospf *po, ip_addr prefix, int pxlen, int dest,
     if ((new->type == RTS_OSPF) && (anet = (struct area_net *)fib_route(&oa->net_fib, prefix, pxlen)))
     {
        anet->active = 1;
-       if (new->metric1 < anet->metric) anet->metric = new->metric1;
+       if (new->metric1 > anet->metric) anet->metric = new->metric1;
     }
   }
   else
@@ -588,7 +588,7 @@ ospf_rt_spf(struct proto_ospf *po)
     {
       anet = (struct area_net *) nftmp;
       anet->active = 0;
-      anet->metric = LSINFINITY;
+      anet->metric = 1;
     }
     FIB_WALK_END;
     ospf_rt_spfa(oa);