]> git.proxmox.com Git - mirror_frr.git/commit
ospfd: Fix ospfd crash
authorOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 9 Feb 2018 11:13:07 +0000 (12:13 +0100)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Wed, 21 Feb 2018 17:44:20 +0000 (18:44 +0100)
commiteb2c2672f7f741144a58e6b8d2d7a8a9f50eabe7
tree1b834aa9c5f7a6f61e978d66bf6f544aa94346ed
parent28f87146459a0766c16e990f1b1a1087b4910484
ospfd: Fix ospfd crash

 - ospfd/ospf_opaque.c: Update issue #1652 by introducing a new
function 'free_opaque_info_owner()' to clean list of callback owner
and call this function in appropriate place where 'listdelete_and_null'
is not used.

 - ospfd/ospf_packet.c: In case of crash, ospfd is not been able to
flush LSA. In case of self Opaque LSA, when restarting, ospfd crash
during the resynchronisation process with its neighbor due to an
empty list of LSA to flood. Just add a control on the list count
in 'ospf_ls_upd_queue_send()' to escape the function and avoid the
problem.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
ospfd/ospf_opaque.c
ospfd/ospf_packet.c