diff options
author | Ondrej Filip <feela@network.cz> | 2000-11-22 00:47:51 +0100 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-11-22 00:47:51 +0100 |
commit | 501c5bb03fabd3d5721cfd8c82298f729d79e7a3 (patch) | |
tree | 2c1aad6c491fce28f1030adb68e7ff5ca998b1df | |
parent | a5096a1bdebe217eb0d04a95489562ac132f4552 (diff) | |
download | bird-501c5bb03fabd3d5721cfd8c82298f729d79e7a3.tar bird-501c5bb03fabd3d5721cfd8c82298f729d79e7a3.zip |
Small bugfix in ext routes calculation.
-rw-r--r-- | proto/ospf/rt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index aeb9a94..5ab9b6a 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -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; |