mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 08:32:12 +00:00
Merge pull request #596 from donaldsharp/bgp_vrf_terminate
bgpd: Fix crash when going down
This commit is contained in:
commit
0ef0c0505e
@ -194,7 +194,6 @@ bgp_exit (int status)
|
|||||||
/* reverse bgp_master_init */
|
/* reverse bgp_master_init */
|
||||||
for (ALL_LIST_ELEMENTS (bm->bgp, node, nnode, bgp))
|
for (ALL_LIST_ELEMENTS (bm->bgp, node, nnode, bgp))
|
||||||
bgp_delete (bgp);
|
bgp_delete (bgp);
|
||||||
list_free (bm->bgp);
|
|
||||||
|
|
||||||
/* reverse bgp_dump_init */
|
/* reverse bgp_dump_init */
|
||||||
bgp_dump_finish ();
|
bgp_dump_finish ();
|
||||||
@ -246,6 +245,7 @@ bgp_exit (int status)
|
|||||||
|
|
||||||
closezlog ();
|
closezlog ();
|
||||||
|
|
||||||
|
list_delete (bm->bgp);
|
||||||
memset (bm, 0, sizeof (*bm));
|
memset (bm, 0, sizeof (*bm));
|
||||||
|
|
||||||
if (bgp_debug_count())
|
if (bgp_debug_count())
|
||||||
|
Loading…
Reference in New Issue
Block a user