0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Bugfix in previous bugfix.

This commit is contained in:
Ondrej Filip 2005-02-18 19:36:32 +00:00
parent 60e04f0413
commit 5506c82ce6

View 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);