Merge pull request #8920 from mjstapp/fix_bgp_adv_sa

bgpd: Fix SA warning about freeing an aspath
This commit is contained in:
Donald Sharp 2021-06-25 19:13:25 -04:00 committed by GitHub
commit 31cd08c94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -839,6 +839,8 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
bgp_dest_get_prefix(dest), &tmp_pi);
if (ret == RMAP_DENYMATCH) {
/* The aspath belongs to 'attr' */
tmp_attr.aspath = NULL;
bgp_attr_flush(&tmp_attr);
continue;
} else {