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:
Timo Teräs 2020-07-19 18:07:31 +03:00 committed by Reuben Dowle
parent f7f9a3770e
commit 6cfd90f353

View file

@ -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;