]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Fix ospfd crash 1730/head
authorOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 9 Feb 2018 11:13:07 +0000 (12:13 +0100)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 9 Feb 2018 11:13:07 +0000 (12:13 +0100)
commit19274fe8c7bf0ab80375344826e183b4356c9c7b
tree7ac05b8f1f12741c38dd1322baffe50130635515
parent25236dd35df008a1484f2605299c8228ea1cfc5b
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