From 46c1a583a5c1ea81e8d8f372bd7f614506a63938 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 3 Feb 2012 11:50:51 +0100 Subject: Fixes a bug causing crash during soft reconfiguration of export to kernel proto. --- sysdep/unix/krt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sysdep') 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 -- cgit v1.2.3