]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: use XCALLOC to allocate string buf
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:08:21 +0000 (00:08 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 29 May 2019 18:03:26 +0000 (18:03 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_community.c

index 6270a4dd4c2015e1b03df766dd370882e8173e1d..6fc52ff9e03195cec06a202fa7989fb8a2115ec3 100644 (file)
@@ -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.  */