aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_alert.hrl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-05-09 12:16:30 +0200
committerIngela Anderton Andin <[email protected]>2014-05-09 12:16:30 +0200
commit726a6beccce6ff77d9c3910396b9680147accd12 (patch)
treedc94e5911e4c868c314e180ecd12425e37e42f9f /lib/ssl/src/ssl_alert.hrl
parent17a4fefd66da7e34775c5ddb9ac146816d5abd42 (diff)
parent6b483da9c102b1650ab103f78f57f9bd7c707781 (diff)
downloadotp-726a6beccce6ff77d9c3910396b9680147accd12.tar.gz
otp-726a6beccce6ff77d9c3910396b9680147accd12.tar.bz2
otp-726a6beccce6ff77d9c3910396b9680147accd12.zip
Merge branch 'ia/ssl/false-alerts/OTP-11890' into maint
* ia/ssl/false-alerts/OTP-11890: ssl: Add checks to avoid processing of illegal alerts
Diffstat (limited to 'lib/ssl/src/ssl_alert.hrl')
-rw-r--r--lib/ssl/src/ssl_alert.hrl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssl/src/ssl_alert.hrl b/lib/ssl/src/ssl_alert.hrl
index 2d1f323085..f4f1d74264 100644
--- a/lib/ssl/src/ssl_alert.hrl
+++ b/lib/ssl/src/ssl_alert.hrl
@@ -104,6 +104,8 @@
-define(ALERT_REC(Level,Desc), #alert{level=Level,description=Desc,where={?FILE, ?LINE}}).
+-define(MAX_ALERTS, 10).
+
%% Alert
-record(alert, {
level,