mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:44:16 +00:00
bgpd: Use sizeof() in bgp_dump_attr()
Missed this in 5022c8331d
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
6e03b29bb0
commit
b9ad14e5e8
@ -1159,7 +1159,7 @@ bgp_attr_malformed(struct bgp_attr_parser_args *args, uint8_t subcode,
|
|||||||
if (bgp_debug_update(peer, NULL, NULL, 1)) {
|
if (bgp_debug_update(peer, NULL, NULL, 1)) {
|
||||||
char attr_str[BUFSIZ] = {0};
|
char attr_str[BUFSIZ] = {0};
|
||||||
|
|
||||||
bgp_dump_attr(attr, attr_str, BUFSIZ);
|
bgp_dump_attr(attr, attr_str, sizeof(attr_str));
|
||||||
|
|
||||||
zlog_debug("%s: attributes: %s", __func__, attr_str);
|
zlog_debug("%s: attributes: %s", __func__, attr_str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user