diff options
author | Maria Matejka <mq@ucw.cz> | 2021-09-05 13:00:08 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-10-13 19:00:36 +0200 |
commit | d322ee3d548a87d6e996dd20b2b415aad4b53f62 (patch) | |
tree | 81b85bf54fdb4f8e9605f36ae5323964765e69dd | |
parent | e5a8eec6d720408139d0a209ef149848c5dcfbe3 (diff) |
OSPF: explicitly stop the periodic tick on shutdown to avoid recalculation races
-rw-r--r-- | proto/ospf/ospf.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |