mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
ospfd: Fix ships in the night PR's and list_delete
list_delete_and_null should be used. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
6bab451dcd
commit
84519c8164
@ -634,7 +634,7 @@ static void ospf_finish_final(struct ospf *ospf)
|
||||
/* Reset interface. */
|
||||
for (ALL_LIST_ELEMENTS(ospf->oiflist, node, nnode, oi))
|
||||
ospf_if_free(oi);
|
||||
list_delete(ospf->oiflist);
|
||||
list_delete_and_null(&ospf->oiflist);
|
||||
|
||||
/* De-Register VRF */
|
||||
ospf_zebra_vrf_deregister(ospf);
|
||||
@ -769,7 +769,7 @@ static void ospf_finish_final(struct ospf *ospf)
|
||||
if (!CHECK_FLAG(om->options, OSPF_MASTER_SHUTDOWN))
|
||||
instance = ospf->instance;
|
||||
|
||||
list_delete(ospf->oi_write_q);
|
||||
list_delete_and_null(&ospf->oi_write_q);
|
||||
|
||||
ospf_delete(ospf);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user