Skip to content

Commit

Permalink
bgpd: initialization in bgp_notify_admin_message function
Browse files Browse the repository at this point in the history
buffer buff is fully zeroed by a memset in bgp_notify_admin_message
function

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
  • Loading branch information
fdumontet6WIND committed Sep 19, 2023
1 parent d5cb2d9 commit b8f3f0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bgpd/bgp_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b8f3f0b

Please sign in to comment.