summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_debug.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-09 12:44:25 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-10 10:04:03 +0100
commit1bcf3a96de9923af1ab6c95d4f59f90374015336 (patch)
tree9c2ad0eaf24972c06001a9d6a327f01e7aafb78b /bgpd/bgp_debug.c
parentMerge pull request #10549 from idryzhov/bgp-coverity (diff)
downloadfrr-1bcf3a96de9923af1ab6c95d4f59f90374015336.tar.xz
frr-1bcf3a96de9923af1ab6c95d4f59f90374015336.zip
bgpd: Use get/set helpers for attr->lcommunity
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r--bgpd/bgp_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c
index 453d53e87..82e05dc53 100644
--- a/bgpd/bgp_debug.c
+++ b/bgpd/bgp_debug.c
@@ -416,7 +416,7 @@ bool bgp_dump_attr(struct attr *attr, char *buf, size_t size)
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_LARGE_COMMUNITIES)))
snprintf(buf + strlen(buf), size - strlen(buf),
", large-community %s",
- lcommunity_str(attr->lcommunity, false));
+ lcommunity_str(bgp_attr_get_lcommunity(attr), false));
if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_EXT_COMMUNITIES)))
snprintf(buf + strlen(buf), size - strlen(buf),