]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Small bugfix in ext routes calculation.
authorOndrej Filip <feela@network.cz>
Tue, 21 Nov 2000 23:47:51 +0000 (23:47 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 21 Nov 2000 23:47:51 +0000 (23:47 +0000)
proto/ospf/rt.c

index aeb9a94457988f4fae641b31010d7487534ae902..5ab9b6ad8a4d8a8c5c2b52f2cdb443737cdff1d7 100644 (file)
@@ -348,8 +348,9 @@ ospf_ext_spfa(struct proto_ospf *po)        /* FIXME looking into inter-area */
         }
       }
     }
-    rt=(struct ospf_lsa_rt *)absr->lsa_body;
-    if((absr==NULL)||(absr->dist==LSINFINITY)||(rt->veb.bit.e==0))
+
+    if((absr==NULL)||(absr->dist==LSINFINITY)||
+      (((struct ospf_lsa_rt *)(absr->lsa_body))->veb.bit.e==0))
     {
       DBG("ASBR is null or its dist=INF\n");
       continue;