]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospf_ext.c
OSPFd: Fix ospfd crash during CI
authorOlivier Dugeon <olivier.dugeon@orange.com>
Sat, 3 Feb 2018 18:30:33 +0000 (19:30 +0100)
committerOlivier Dugeon <olivier.dugeon@orange.com>
Sat, 3 Feb 2018 18:30:33 +0000 (19:30 +0100)
commitbcf4475ec3f3946a5b9b25d67077bc4cac504954
tree802b43e50fcf74414cb906f9977f12e6ef6744e3
parentdb28a51f7e3b7ada03994e1fb4eb027fc9b37f11
OSPFd: Fix ospfd crash during CI

When preforming CI test, CLI command 'no router ospf' followed by a
'router ospf' is performed to clean up the previous configuration.
Ospfd crash when configuring 'netwoark area'.

This is due to opsf_opaque_term() introduce in previous commit that cause this
crash. It remove not only Opaque LSA but also the list through the call to
'list_delete_and_null()' function. Same take place in 'ospf_mpls_te_term()',
'ospf_router_info_term()' and 'ospf_ext_term()' function.

New set of 'ospf_XXX_finish()' has been introduced to solve this issue while
keeping the possiblity to terminate properly the Opaque LSA and remove MPLS
LFIB entries set by Segment Routing.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
ospfd/ospf_ext.c
ospfd/ospf_ext.h
ospfd/ospf_opaque.c
ospfd/ospf_opaque.h
ospfd/ospf_ri.c
ospfd/ospf_ri.h
ospfd/ospf_sr.c
ospfd/ospf_sr.h
ospfd/ospf_te.c
ospfd/ospf_te.h
ospfd/ospfd.c