From d322ee3d548a87d6e996dd20b2b415aad4b53f62 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 5 Sep 2021 13:00:08 +0200 Subject: [PATCH] OSPF: explicitly stop the periodic tick on shutdown to avoid recalculation races --- proto/ospf/ospf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index ba8c2e2b..ebebf0ff 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -558,6 +558,9 @@ ospf_shutdown(struct proto *P) } FIB_WALK_END; + if (tm_active(p->disp_timer)) + tm_stop(p->disp_timer); + return PS_DOWN; }