diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-09-11 15:55:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-11 15:55:32 -0400 |
| commit | cf70f6dbe7dddf015476ceee53fcc4b8cdc0f883 (patch) | |
| tree | 673a7f2181e9f2d7533b316dfbf5adff9bb37493 | |
| parent | 6a6acab71680a835c981b2ba5379ddb67bf7de2c (diff) | |
| parent | 4e4c57b04a28b41cfd4d00627f0dc246fb479a64 (diff) | |
Merge pull request #16795 from opensourcerouting/fix/5e1b7f5a69505c76999e610d8773f5abd63fe1a2_10.0
bgpd: fix as-path exclude modify crash
| -rw-r--r-- | bgpd/bgp_routemap.c | 2 |
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); } |
