summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--proto/ospf/rt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index 1926a2b..d9e7094 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -50,6 +50,8 @@ ospf_rt_spfa(struct ospf_area *oa)
debug("%s: Starting routing table calculation for area %I\n",p->name,
oa->areaid);
+ if(oa->rt==NULL) return;
+
WALK_SLIST(SNODE en, oa->lsal)
{
en->color=OUTSPF;