Fixes a bug causing crash during soft reconfiguration of export to kernel proto.

This commit is contained in:
Ondrej Zajicek 2012-02-03 11:50:51 +01:00
parent 39c028e9e9
commit 46c1a583a5

View file

@ -608,10 +608,9 @@ krt_got_route(struct krt_proto *p, rte *e)
return; 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)) if (krt_uptodate(e, old))
verdict = KRF_SEEN; verdict = KRF_SEEN;
else else