mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
Merge pull request #14041 from opensourcerouting/fix/memory_leak_bgp_redistribute_add
bgpd: Do not try to redistribute routes if we are shutting down
This commit is contained in:
commit
4a986f20d7
@ -8650,6 +8650,10 @@ void bgp_redistribute_add(struct bgp *bgp, struct prefix *p,
|
||||
route_map_result_t ret;
|
||||
struct bgp_redist *red;
|
||||
|
||||
if (CHECK_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS) ||
|
||||
bgp->peer_self == NULL)
|
||||
return;
|
||||
|
||||
/* Make default attribute. */
|
||||
bgp_attr_default_set(&attr, bgp, BGP_ORIGIN_INCOMPLETE);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user