Fixes a bug causing crash during soft reconfiguration of export to kernel proto.
This commit is contained in:
parent
39c028e9e9
commit
46c1a583a5
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue