mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-18 18:29:07 +00:00
bgpd: last_reset_cause_size can't be larger than 65k bytes
Reduce the scope, to avoid comparing uint16_t vs. size_t in a loop. ``` vty_out(vty, " Message received that caused BGP to send a NOTIFICATION:\n "); for (i = 1; i <= p->last_reset_cause_size; i++) { ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
121903bd01
commit
8dcad8e9fd
@ -1637,7 +1637,7 @@ struct peer {
|
||||
* a new value to the last_reset reason
|
||||
*/
|
||||
|
||||
size_t last_reset_cause_size;
|
||||
uint16_t last_reset_cause_size;
|
||||
uint8_t last_reset_cause[BGP_MAX_PACKET_SIZE];
|
||||
|
||||
/* The kind of route-map Flags.*/
|
||||
|
Loading…
Reference in New Issue
Block a user