summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep')
-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