Merge pull request #14044 from FRRouting/mergify/bp/stable/8.5/pr-14041

bgpd: Do not try to redistribute routes if we are shutting down (backport #14041)
This commit is contained in:
Donald Sharp 2023-07-18 15:07:33 -04:00 committed by GitHub
commit a24953201b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8652,6 +8652,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);
/*