summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_debug.c
diff options
context:
space:
mode:
authorFrancois Dumontet <francois.dumontet@6wind.com>2023-09-18 13:55:08 +0200
committerFrancois Dumontet <francois.dumontet@6wind.com>2023-09-19 14:25:18 +0200
commitb8f3f0b86ff3fae4a3e655811680bc11b18fd0e2 (patch)
tree7f82c30202993f83ef7f7497d67e294697df297e /bgpd/bgp_debug.c
parentbgpd: fix crash in *bgpv2PeerErrorsTable (diff)
downloadfrr-b8f3f0b86ff3fae4a3e655811680bc11b18fd0e2.tar.xz
frr-b8f3f0b86ff3fae4a3e655811680bc11b18fd0e2.zip
bgpd: initialization in bgp_notify_admin_message function
buffer buff is fully zeroed by a memset in bgp_notify_admin_message function Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_debug.c')
-rw-r--r--bgpd/bgp_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_debug.c b/bgpd/bgp_debug.c
index a5261d614..123a1cacf 100644
--- a/bgpd/bgp_debug.c
+++ b/bgpd/bgp_debug.c
@@ -498,6 +498,7 @@ const char *bgp_notify_subcode_str(char code, char subcode)
const char *bgp_notify_admin_message(char *buf, size_t bufsz, uint8_t *data,
size_t datalen)
{
+ memset(buf, 0, bufsz);
if (!data || datalen < 1)
return buf;