mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-09-07 22:15:19 +00:00
BGP: Increase max length of notification data in error logs
Increase max length of notification data in error logs from 16 to 128. There is already enough space in the buffer. Thanks to Marco d'Itri for the suggestion.
This commit is contained in:
parent
f40e2bc270
commit
ff2ebdc7e1
@ -3377,8 +3377,8 @@ bgp_log_error(struct bgp_proto *p, u8 class, char *msg, uint code, uint subcode,
|
||||
|
||||
*t++ = ':';
|
||||
*t++ = ' ';
|
||||
if (len > 16)
|
||||
len = 16;
|
||||
if (len > 128)
|
||||
len = 128;
|
||||
for (i=0; i<len; i++)
|
||||
t += bsprintf(t, "%02x", data[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user