summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-11-21 23:47:51 +0000
committerOndrej Filip <feela@network.cz>2000-11-21 23:47:51 +0000
commit501c5bb03fabd3d5721cfd8c82298f729d79e7a3 (patch)
tree2c1aad6c491fce28f1030adb68e7ff5ca998b1df /proto/ospf
parenta5096a1bdebe217eb0d04a95489562ac132f4552 (diff)
Small bugfix in ext routes calculation.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/rt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index aeb9a944..5ab9b6ad 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;