diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-05 11:11:27 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-01-07 21:35:38 +0100 |
commit | 9f33eea39a5858dc05cbcee7ca1068d1cef48713 (patch) | |
tree | ab57f6f98a807995f4f23972c0d62bf0ab79f4d4 /bgpd/bgp_debug.c | |
parent | Merge pull request #10301 from donaldsharp/pim_multicast_fix (diff) | |
download | frr-9f33eea39a5858dc05cbcee7ca1068d1cef48713.tar.xz frr-9f33eea39a5858dc05cbcee7ca1068d1cef48713.zip |
bgpd: Increase administrative shutdown message size to 255
Extended BGP Administrative Shutdown Communication (rfc9003):
Basically, shutdown message size is increased to 255 from 128.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r-- | bgpd/bgp_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c index fde1bdd7c..64f71bebc 100644 --- a/bgpd/bgp_debug.c +++ b/bgpd/bgp_debug.c @@ -509,7 +509,7 @@ const char *bgp_notify_admin_message(char *buf, size_t bufsz, uint8_t *data, return NULL; uint8_t len = data[0]; - if (len > 128 || len > datalen - 1) + if (!len || len > datalen - 1) return NULL; return zlog_sanitize(buf, bufsz, data + 1, len); |