From 1f5235f68a3981ddbb3ead72106c7bf1e9de2257 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Wed, 23 May 2018 12:10:00 +0200 Subject: [PATCH] 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 --- bgpd/bgp_ecommunity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index eff6f0f81a..20f5e15d69 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; -- 2.39.5