diff options
| author | Pascal Mathis <mail@pascalmathis.com> | 2018-05-16 21:55:55 +0200 |
|---|---|---|
| committer | Pascal Mathis <mail@pascalmathis.com> | 2018-05-16 22:20:44 +0200 |
| commit | b755861b95142446bac05f0f2506647bbca5d2d8 (patch) | |
| tree | 55b2955640ef694b17e59f355a0cfc5e0a84a88f /zebra/zebra_mpls_openbsd.c | |
| parent | 6392aaa6547e665859ab5c648df30c1c04e26f6d (diff) | |
bgpd: Fix memleak, adapt adv- to recv-routes code
This commit tries to adapt a similar codeflow within the `show bgp [afi]
[safi] neighbor <neighbor> advertised-routes` command compared to its
`received-routes` and `filtered-routes` opponents. Some branching code
has been restructured to achieve this.
Additionally, this commit fixes a memory leak within `received-routes`
(and `filtered-routes`, although the issue has been present before the
previous commit!) where the previous implementation forgot to
deduplicate the BGP attributes.
When a user called `<...> received-routes route-map <RM-TEST>` and that
routemap changed any AS path or community parameters, the duplicated
memory for these parameters was never freed. This has been fixed by
ensuring to call `bgp_attr_undup()` accordingly.
Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
Diffstat (limited to 'zebra/zebra_mpls_openbsd.c')
0 files changed, 0 insertions, 0 deletions
