]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in RT calculation.
authorOndrej Filip <feela@network.cz>
Mon, 7 Jun 2004 16:42:48 +0000 (16:42 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 7 Jun 2004 16:42:48 +0000 (16:42 +0000)
proto/ospf/lsalib.c

index e3df74c86d051e8919e5cac91b9dfc934be17021..e0871c888a32bbdb9414a46b14264a43fe945d15 100644 (file)
@@ -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;