diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2022-02-09 23:43:37 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2022-02-09 23:43:37 +0100 |
commit | d498917efddb0eb19ed713ef377b95997b457abe (patch) | |
tree | 657088e00c0276ea5482e8a4722acaa154dc85f2 /bgpd/bgp_updgrp_adv.c | |
parent | Merge pull request #10482 from donaldsharp/zebra_buffering (diff) | |
download | frr-d498917efddb0eb19ed713ef377b95997b457abe.tar.xz frr-d498917efddb0eb19ed713ef377b95997b457abe.zip |
bgpd: remove bgp_attr_undup
bgp_attr_undup does the same thing as bgp_attr_flush – frees the
temporary data that might be allocated when applying a route-map. There
is no need to have two separate functions for that.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bgpd/bgp_updgrp_adv.c')
-rw-r--r-- | bgpd/bgp_updgrp_adv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c index 2110dcb8b..dd140e48a 100644 --- a/bgpd/bgp_updgrp_adv.c +++ b/bgpd/bgp_updgrp_adv.c @@ -859,7 +859,7 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw) bgp_dest_get_prefix(dest), pi, &tmp_pi); if (ret == RMAP_DENYMATCH) { - bgp_attr_undup(&tmp_attr, &attr); + bgp_attr_flush(&tmp_attr); continue; } else { new_attr = bgp_attr_intern(&tmp_attr); |