From e02652a7d2e1f9bb599dbf9fa5862f03f4188efa Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 7 Jun 2004 16:42:48 +0000 Subject: Bugfix in RT calculation. --- proto/ospf/lsalib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3