summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-09-11 15:55:09 -0400
committerGitHub <noreply@github.com>2024-09-11 15:55:09 -0400
commit884196eed18339c607882059b58f6ba7b53adb00 (patch)
treee5e9fe1eda8e74fd5f95f573b9337deec74c6d29
parent6704b38d0df792de30a935d1ea0f5a613473d318 (diff)
parent5e3edba385d784917de32092f3eaf16d129de934 (diff)
Merge pull request #16794 from opensourcerouting/fix/5e1b7f5a69505c76999e610d8773f5abd63fe1a2_10.1
bgpd: fix as-path exclude modify crash
-rw-r--r--bgpd/bgp_routemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index 03088ca23d..4895ddbc73 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -2357,7 +2357,7 @@ static void route_aspath_exclude_free(void *rule)
if (ase->exclude_aspath_acl) {
acl = ase->exclude_aspath_acl;
as_list_list_del(&acl->exclude_rule, ase);
- } else {
+ } else if (ase->exclude_aspath_acl_name) {
/* no ref to acl, this aspath exclude is orphan */
as_exclude_remove_orphan(ase);
}