mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
nhrpd: change ipsec SA count to 32-bit
Under certain misconfigurations, the SA count can be unusually high and wrap 8-bit counter. That leads to premature free, and crash. Make the count 32-bit to avoid crash in these rare conditions. Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
This commit is contained in:
parent
f7f9a3770e
commit
6cfd90f353
|
@ -124,7 +124,7 @@ enum nhrp_notify_type {
|
|||
|
||||
struct nhrp_vc {
|
||||
struct notifier_list notifier_list;
|
||||
uint8_t ipsec;
|
||||
uint32_t ipsec;
|
||||
uint8_t updating;
|
||||
uint8_t abort_migration;
|
||||
|
||||
|
|
Loading…
Reference in a new issue