diff options
| author | Timo Teräs <timo.teras@iki.fi> | 2020-07-19 18:07:31 +0300 |
|---|---|---|
| committer | Reuben Dowle <reuben.dowle@4rf.com> | 2020-12-17 10:04:12 +1300 |
| commit | 6cfd90f353f39e35a249168022366b5cc322ccbd (patch) | |
| tree | 9eda2f2276a9bfdab8d287643e77ce6e01296c4b | |
| parent | f7f9a3770e5fed62d642a8feef9f972710aeba7b (diff) | |
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>
| -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 80a365a3c3..4ff9734ce6 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; |
