From: Igor Ryzhov Date: Mon, 24 Aug 2020 15:45:53 +0000 (+0300) Subject: bfdd: fix parameter length X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6941b92d1abfb3d5000fa70fefa71bf36c3e03d7;p=matthieu%2Ffrr.git bfdd: fix parameter length There is no space reserved for "[source-addr='']". Signed-off-by: Igor Ryzhov (cherry picked from commit e6426ace1edadd3c27ac612815ebc994ea54ba39) --- diff --git a/bfdd/bfdd_cli.c b/bfdd/bfdd_cli.c index 3e44fcb22a..6fc2475cb0 100644 --- a/bfdd/bfdd_cli.c +++ b/bfdd/bfdd_cli.c @@ -109,7 +109,7 @@ DEFPY_NOSH( VRF_NAME_STR) { int ret, slen; - char source_str[INET6_ADDRSTRLEN]; + char source_str[INET6_ADDRSTRLEN + 32]; char xpath[XPATH_MAXLEN], xpath_srcaddr[XPATH_MAXLEN + 32]; if (multihop) @@ -168,7 +168,7 @@ DEFPY( { int slen; char xpath[XPATH_MAXLEN]; - char source_str[INET6_ADDRSTRLEN]; + char source_str[INET6_ADDRSTRLEN + 32]; if (multihop) snprintf(source_str, sizeof(source_str), "[source-addr='%s']",