From: Ondrej Zajicek Date: Fri, 3 Feb 2012 10:50:51 +0000 (+0100) Subject: Fixes a bug causing crash during soft reconfiguration of export to kernel proto. X-Git-Tag: v1.3.7~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46c1a583a5c1ea81e8d8f372bd7f614506a63938;p=thirdparty%2Fbird.git Fixes a bug causing crash during soft reconfiguration of export to kernel proto. --- diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index 231c5fcf3..0fb8c4f93 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