]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: fix dangling pointer when exiting from the helper mode
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 31 May 2021 13:27:51 +0000 (10:27 -0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 9 Jun 2021 16:26:46 +0000 (19:26 +0300)
commit16e7fe227650e8480a807e56a4d7ee3eef3c01d2
tree550565c3f193f5143b615a73d12b12c4deee50d3
parentfc2ef2440d10de7a147efe9d97c38b80774c1c0f
ospfd: fix dangling pointer when exiting from the helper mode

When exiting from the helper mode for a given router after an
unsuccessful graceful restart, removing the neighborship to that
router straight away leads to a dangling pointer in the associated
interface, which inevitably leads to a crash. To solve this
problem, schedule the removal of the neighbor instead of removing
it immediately.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospfd/ospf_gr_helper.c