]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: We should not be deleting ospf->oiflist 2 times
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 10 Oct 2017 21:08:32 +0000 (17:08 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 10 Oct 2017 21:09:05 +0000 (17:09 -0400)
The ospf->oiflist deletion is happening 2 times now.
Let's delete it once only.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospfd/ospfd.c

index 0a9a53dbb235bbff5e76f73b08fa7e57670c884d..e74f13c961389c02ce1cab8aee379853eacc941c 100644 (file)
@@ -737,7 +737,6 @@ static void ospf_finish_final(struct ospf *ospf)
 
        list_delete_and_null(&ospf->areas);
        list_delete_and_null(&ospf->oi_write_q);
-       list_delete_and_null(&ospf->oiflist);
 
        for (i = ZEBRA_ROUTE_SYSTEM; i <= ZEBRA_ROUTE_MAX; i++) {
                struct list *ext_list;