]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: no router ospf crash fix
authorChirag Shah <chirag@cumulusnetworks.com>
Fri, 12 Jul 2019 02:36:06 +0000 (19:36 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Mon, 15 Jul 2019 16:55:54 +0000 (09:55 -0700)
commitc32eba04f311d2bd4d249b2d84a3b496b0f4d302
tree14aeab75e864b8212211f87171b5d9e6cc364cfe
parent96e109772d064e9df9ce208b53f7ff1872e1c427
ospfd: no router ospf crash fix

no router ospf triggers to cancel all threads
including read/write (receive/send packets) threads,
cleans up resources fd, message queue and data.

Last job of write (packet) thread invoked where the
ospf instance is referenced is not running nor
the socket fd valid.

Write thread callback should check if fd is valid and
ospf instance is running before proceeding to send a
message over socket.

Ticket:CM-20095
Testing Done:

Performed the multiple 'no router ospf' with the fix
in topology where the crash was seen.
Post fix the crash is not observed.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospfd/ospf_packet.c
ospfd/ospfd.c