summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-07 16:42:48 +0000
committerOndrej Filip <feela@network.cz>2004-06-07 16:42:48 +0000
commite02652a7d2e1f9bb599dbf9fa5862f03f4188efa (patch)
tree10724164952d6a9e26fb900689d9686a5e04909d /proto/ospf
parent6721e2862bf69d3af7dd643cd9f442b76e134d5b (diff)
Bugfix in RT calculation.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/lsalib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c
index e3df74c8..e0871c88 100644
--- a/proto/ospf/lsalib.c
+++ b/proto/ospf/lsalib.c
@@ -44,12 +44,13 @@ ospf_age(struct ospf_area *oa)
struct proto_ospf *po = (struct proto_ospf *) p;
struct top_hash_entry *en, *nxt;
int flush = can_flush_lsa(oa);
+ int cleanup = (oa->rt && (oa->rt->dist != LSINFINITY));
OSPF_TRACE(D_EVENTS, "Running ospf_age");
WALK_SLIST_DELSAFE(en, nxt, oa->lsal)
{
- if (oa->rt && (oa->rt->dist != LSINFINITY))
+ if (cleanup)
{
en->color = OUTSPF;
en->dist = LSINFINITY;