mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +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++ = ':';
|
||||||
*t++ = ' ';
|
*t++ = ' ';
|
||||||
if (len > 16)
|
if (len > 128)
|
||||||
len = 16;
|
len = 128;
|
||||||
for (i=0; i<len; i++)
|
for (i=0; i<len; i++)
|
||||||
t += bsprintf(t, "%02x", data[i]);
|
t += bsprintf(t, "%02x", data[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user