Small bugfix in ext routes calculation.

This commit is contained in:
Ondrej Filip 2000-11-21 23:47:51 +00:00
parent a5096a1bde
commit 501c5bb03f

View 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;