Bugfix in previous bugfix.
This commit is contained in:
parent
60e04f0413
commit
5506c82ce6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue