From: Philippe Guibert Date: Wed, 23 May 2018 10:10:00 +0000 (+0200) Subject: bgpd: increase buffer size to store ecomunity as a string X-Git-Tag: frr-6.1-dev~395^2~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1f5235f68a3981ddbb3ead72106c7bf1e9de2257;p=mirror_frr.git bgpd: increase buffer size to store ecomunity as a string On the case where an ecom from FS redirect is received, the ecom may be with the format A.B.C.D:E. On this case, the printable format of the Flowspec redirect VRF ecom value may use more bytes in the buffer dedicated for that. The buffer that stores the ecommunity is increased. Signed-off-by: Philippe Guibert --- diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index eff6f0f81..20f5e15d6 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -644,7 +644,7 @@ char *ecommunity_ecom2str(struct ecommunity *ecom, int format, int filter) uint8_t *pnt; uint8_t type = 0; uint8_t sub_type = 0; -#define ECOMMUNITY_STR_DEFAULT_LEN 27 +#define ECOMMUNITY_STR_DEFAULT_LEN 64 int str_size; int str_pnt; char *str_buf;