Skip to content

Commit

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

bgpd: fix as-path exclude modify crash
  • Loading branch information
donaldsharp committed Sep 11, 2024
2 parents 6a6acab + 4e4c57b commit cf70f6d
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 @@ -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);
}
Expand Down

0 comments on commit cf70f6d

Please sign in to comment.