summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_community.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 02:08:21 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-29 20:03:26 +0200
commitf9bff3be9ebff9b0edf27b609e1572388d2b9f16 (patch)
treed449dcb506361a1fdcf5e055b4543a6f86e9356f /bgpd/bgp_community.c
parentlib: use static storage for vty_cwd (diff)
downloadfrr-f9bff3be9ebff9b0edf27b609e1572388d2b9f16.tar.xz
frr-f9bff3be9ebff9b0edf27b609e1572388d2b9f16.zip
bgpd: use XCALLOC to allocate string buf
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_community.c')
-rw-r--r--bgpd/bgp_community.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_community.c b/bgpd/bgp_community.c
index 6270a4dd4..6fc52ff9e 100644
--- a/bgpd/bgp_community.c
+++ b/bgpd/bgp_community.c
@@ -296,7 +296,7 @@ static void set_community_string(struct community *com, bool make_json)
}
/* Allocate memory. */
- str = XMALLOC(MTYPE_COMMUNITY_STR, len);
+ str = XCALLOC(MTYPE_COMMUNITY_STR, len);
first = 1;
/* Fill in string. */