aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Arendt <[email protected]>2014-05-22 10:37:03 +0200
committerMarcus Arendt <[email protected]>2014-05-22 10:37:03 +0200
commitc22b0017e872ae3c0816092ed92e1fbc76a8e07b (patch)
treeee5e5b9b6bee6456cb4bf2aff435dc8ceb69a113
parent19a2d5ffcf1f248a0f3460e15c998703cba410f0 (diff)
parent4c34c06adc8709a6c13e2b5419e66582244040e6 (diff)
downloadotp-c22b0017e872ae3c0816092ed92e1fbc76a8e07b.tar.gz
otp-c22b0017e872ae3c0816092ed92e1fbc76a8e07b.tar.bz2
otp-c22b0017e872ae3c0816092ed92e1fbc76a8e07b.zip
Merge branch 'dz/fix_ssl_max_seq_num' into maint
* dz/fix_ssl_max_seq_num: ssl: fix max sequence number so it does not overflow
-rw-r--r--lib/ssl/src/ssl_record.hrl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_record.hrl b/lib/ssl/src/ssl_record.hrl
index 87ed233c0a..6aab35d6da 100644
--- a/lib/ssl/src/ssl_record.hrl
+++ b/lib/ssl/src/ssl_record.hrl
@@ -70,7 +70,7 @@
-define(INITIAL_BYTES, 5).
--define(MAX_SEQENCE_NUMBER, 18446744073709552000). %% math:pow(2, 64) - 1 = 1.8446744073709552e19
+-define(MAX_SEQENCE_NUMBER, 18446744073709551615). %% (1 bsl 64) - 1 = 18446744073709551615
%% Sequence numbers can not wrap so when max is about to be reached we should renegotiate.
%% We will renegotiate a little before so that there will be sequence numbers left
%% for the rehandshake and a little data. Currently we decided to renegotiate a little more