diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-06-25 19:13:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-25 19:13:25 -0400 |
| commit | 31cd08c94ea55e007cb44d52adb3bf7050274df3 (patch) | |
| tree | 2672d5b0c1281df612d924e56444efdbb961cd4f | |
| parent | 065549df1353da827d7340476d3e0c121a999fdc (diff) | |
| parent | e9b3e38f2d2d9652f77e0e6bc91f3301fb361813 (diff) | |
Merge pull request #8920 from mjstapp/fix_bgp_adv_sa
bgpd: Fix SA warning about freeing an aspath
| -rw-r--r-- | bgpd/bgp_updgrp_adv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c index 4dd7597e5f..18829aa747 100644 --- a/bgpd/bgp_updgrp_adv.c +++ b/bgpd/bgp_updgrp_adv.c @@ -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 { |
