From 6cfd90f353f39e35a249168022366b5cc322ccbd Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Sun, 19 Jul 2020 18:07:31 +0300 Subject: 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 --- nhrpd/nhrpd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nhrpd/nhrpd.h') diff --git a/nhrpd/nhrpd.h b/nhrpd/nhrpd.h index 80a365a3c..4ff9734ce 100644 --- a/nhrpd/nhrpd.h +++ b/nhrpd/nhrpd.h @@ -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; -- cgit v1.2.3