summaryrefslogtreecommitdiffstats
path: root/nhrpd
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-07-19 17:07:31 +0200
committerReuben Dowle <reuben.dowle@4rf.com>2020-12-16 22:04:12 +0100
commit6cfd90f353f39e35a249168022366b5cc322ccbd (patch)
tree9eda2f2276a9bfdab8d287643e77ce6e01296c4b /nhrpd
parentnhrpd: Set correct prefix length in nhrp registration (diff)
downloadfrr-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')
-rw-r--r--nhrpd/nhrpd.h2
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;