From: Maria Matejka Date: Sun, 5 Sep 2021 11:00:08 +0000 (+0200) Subject: OSPF: explicitly stop the periodic tick on shutdown to avoid recalculation races X-Git-Tag: 3.0-alpha0~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d322ee3d548a87d6e996dd20b2b415aad4b53f62;p=thirdparty%2Fbird.git OSPF: explicitly stop the periodic tick on shutdown to avoid recalculation races --- diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index ba8c2e2bc..ebebf0ff2 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; }