summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-04 17:51:52 +0000
committerOndrej Filip <feela@network.cz>2000-06-04 17:51:52 +0000
commit102e3e0e0277e7b123c7c1ae3635c4a8fb55c900 (patch)
tree6e197c8069a210538993ee5d6249960ddf3d7c14 /proto/ospf
parent83e50ffc472c8869d58a7d1da27846bd727a8cfd (diff)
Just to be sure, that rt calculation cannot start beforeorigination of rt LSA.
Diffstat (limited to 'proto/ospf')
-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 1926a2bd..d9e70945 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;