summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
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 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;