Skip to content

Commit

Permalink
Merge pull request #16794 from opensourcerouting/fix/5e1b7f5a69505c76…
Browse files Browse the repository at this point in the history
…999e610d8773f5abd63fe1a2_10.1

bgpd: fix as-path exclude modify crash
  • Loading branch information
donaldsharp authored Sep 11, 2024
2 parents 6704b38 + 5e3edba commit 884196e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_routemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 884196e

Please sign in to comment.