diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2020-08-19 12:36:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 12:36:13 +0200 |
commit | 4fe5bc8c6282b58cbd9206146bb38e983f815de8 (patch) | |
tree | c47ee6388e6f59ebcfb554d0d7db3a51d03e5c28 /bgpd/bgp_evpn.c | |
parent | Merge pull request #5702 from vishaldhingra/bgp_nb (diff) | |
parent | bgpd: Use sizeof() in bgp_dump_attr() (diff) | |
download | frr-4fe5bc8c6282b58cbd9206146bb38e983f815de8.tar.xz frr-4fe5bc8c6282b58cbd9206146bb38e983f815de8.zip |
Merge pull request #6943 from ton31337/fix/replace_sizeof_instead_of_constant_for_bgp_dump_attr
bgpd: Use sizeof() in bgp_dump_attr()
Diffstat (limited to 'bgpd/bgp_evpn.c')
-rw-r--r-- | bgpd/bgp_evpn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 4a5d5c3b6..54593497c 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -2836,7 +2836,7 @@ static int bgp_evpn_route_rmac_self_check(struct bgp *bgp_vrf, char buf1[PREFIX_STRLEN]; char attr_str[BUFSIZ] = {0}; - bgp_dump_attr(pi->attr, attr_str, BUFSIZ); + bgp_dump_attr(pi->attr, attr_str, sizeof(attr_str)); zlog_debug("%s: bgp %u prefix %s with attr %s - DENIED due to self mac", __func__, bgp_vrf->vrf_id, @@ -5190,7 +5190,8 @@ int bgp_filter_evpn_routes_upon_martian_nh_change(struct bgp *bgp) char attr_str[BUFSIZ] = {0}; bgp_dump_attr(pi->attr, - attr_str, BUFSIZ); + attr_str, + sizeof(attr_str)); zlog_debug( "%u: prefix %pRN with attr %s - DENIED due to martian or self nexthop", |