]> git.puffer.fish Git - mirror/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)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 8 Jun 2021 14:41:33 +0000 (11:41 -0300)
commit4b3c4577024be8ebbfa8d36aada419070c2925be
treec7b0f9aac6e12f7bacded45554db3f3a472905d9
parentf5f27b588a1c6d9f89c1e25c7dc856df4ea8007f
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