Skip to content

Commit 884196e

Browse files
authored
Merge pull request #16794 from opensourcerouting/fix/5e1b7f5a69505c76999e610d8773f5abd63fe1a2_10.1
bgpd: fix as-path exclude modify crash
2 parents 6704b38 + 5e3edba commit 884196e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bgpd/bgp_routemap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ static void route_aspath_exclude_free(void *rule)
23572357
if (ase->exclude_aspath_acl) {
23582358
acl = ase->exclude_aspath_acl;
23592359
as_list_list_del(&acl->exclude_rule, ase);
2360-
} else {
2360+
} else if (ase->exclude_aspath_acl_name) {
23612361
/* no ref to acl, this aspath exclude is orphan */
23622362
as_exclude_remove_orphan(ase);
23632363
}

0 commit comments

Comments
 (0)