summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto')
-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;