mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 07:15:33 +00:00
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>
This commit is contained in:
parent
d5cb2d9e41
commit
b8f3f0b86f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user