summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-02-03 11:50:51 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2012-02-03 11:50:51 +0100
commit46c1a583a5c1ea81e8d8f372bd7f614506a63938 (patch)
tree2fa45473cedb682e8e31e53591b620985379df66
parent39c028e9e9e3acf840051f4271fadd4939fde2af (diff)
Fixes a bug causing crash during soft reconfiguration of export to kernel proto.
-rw-r--r--sysdep/unix/krt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index 231c5fcf..0fb8c4f9 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -608,10 +608,9 @@ krt_got_route(struct krt_proto *p, rte *e)
return;
}
- if (net->n.flags & KRF_INSTALLED)
+ old = net->routes;
+ if ((net->n.flags & KRF_INSTALLED) && old)
{
- old = net->routes;
- ASSERT(old);
if (krt_uptodate(e, old))
verdict = KRF_SEEN;
else