]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: explicitly stop the periodic tick on shutdown to avoid recalculation races
authorMaria Matejka <mq@ucw.cz>
Sun, 5 Sep 2021 11:00:08 +0000 (13:00 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 13 Oct 2021 17:00:36 +0000 (19:00 +0200)
proto/ospf/ospf.c

index ba8c2e2bc12f53c82670619a589ef075066ee686..ebebf0ff26364e569c6fc85aaa657df624c53473 100644 (file)
@@ -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;
 }