diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-07-19 17:07:31 +0200 |
---|---|---|
committer | Reuben Dowle <reuben.dowle@4rf.com> | 2020-12-16 22:04:12 +0100 |
commit | 6cfd90f353f39e35a249168022366b5cc322ccbd (patch) | |
tree | 9eda2f2276a9bfdab8d287643e77ce6e01296c4b /nhrpd/nhrpd.h | |
parent | nhrpd: Set correct prefix length in nhrp registration (diff) | |
download | frr-6cfd90f353f39e35a249168022366b5cc322ccbd.tar.xz frr-6cfd90f353f39e35a249168022366b5cc322ccbd.zip |
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>
Diffstat (limited to 'nhrpd/nhrpd.h')
-rw-r--r-- | nhrpd/nhrpd.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |