diff options
author | Francois Dumontet <francois.dumontet@6wind.com> | 2023-09-18 13:55:08 +0200 |
---|---|---|
committer | Francois Dumontet <francois.dumontet@6wind.com> | 2023-09-19 14:25:18 +0200 |
commit | b8f3f0b86ff3fae4a3e655811680bc11b18fd0e2 (patch) | |
tree | 7f82c30202993f83ef7f7497d67e294697df297e /bgpd/bgp_debug.c | |
parent | bgpd: fix crash in *bgpv2PeerErrorsTable (diff) | |
download | frr-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.c | 1 |
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; |