summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-09-11 15:55:32 -0400
committerGitHub <noreply@github.com>2024-09-11 15:55:32 -0400
commitcf70f6dbe7dddf015476ceee53fcc4b8cdc0f883 (patch)
tree673a7f2181e9f2d7533b316dfbf5adff9bb37493
parent6a6acab71680a835c981b2ba5379ddb67bf7de2c (diff)
parent4e4c57b04a28b41cfd4d00627f0dc246fb479a64 (diff)
Merge pull request #16795 from opensourcerouting/fix/5e1b7f5a69505c76999e610d8773f5abd63fe1a2_10.0
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 e059357f09..72168ea9f5 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -2361,7 +2361,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);
}