From 501c5bb03fabd3d5721cfd8c82298f729d79e7a3 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 21 Nov 2000 23:47:51 +0000 Subject: Small bugfix in ext routes calculation. --- proto/ospf/rt.c | 5 +++-- 1 file 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; -- cgit v1.2.3