aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-10-23 15:55:40 +0200
committerFredrik Gustafsson <[email protected]>2013-10-23 15:55:40 +0200
commite325f51fc3ae56d732db85e6d8bb62bf83d39c2b (patch)
tree5eb7e00b6f53d86dbfc97acb93b99163671501e5
parentb460449bcd928a5cf8e308036a64f45a94d306d4 (diff)
parentf7093361e9b561091317f7425efb9b1368eb0da5 (diff)
downloadotp-e325f51fc3ae56d732db85e6d8bb62bf83d39c2b.tar.gz
otp-e325f51fc3ae56d732db85e6d8bb62bf83d39c2b.tar.bz2
otp-e325f51fc3ae56d732db85e6d8bb62bf83d39c2b.zip
Merge branch 'RoadRunnr/fix_dtls_fragment_decoder/OTP-11376'
* RoadRunnr/fix_dtls_fragment_decoder/OTP-11376: ssl: fix initialization of DTLS fragment reassembler
-rw-r--r--lib/ssl/src/dtls_handshake.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_handshake.erl b/lib/ssl/src/dtls_handshake.erl
index 26e8ce7503..a5bc744154 100644
--- a/lib/ssl/src/dtls_handshake.erl
+++ b/lib/ssl/src/dtls_handshake.erl
@@ -335,7 +335,7 @@ dtls_fragment_init(Length, 0, Length, Body) ->
{Length, [{0, Length}], Body};
dtls_fragment_init(Length, FragmentOffset, FragmentLength, Body) ->
Bin = dtls_fragment_bin_add(FragmentOffset, FragmentLength, Body, <<0:(Length*8)>>),
- {Length, [{FragmentOffset, FragmentLength}], Bin}.
+ {Length, [{FragmentOffset, FragmentOffset + FragmentLength}], Bin}.
dtls_fragment_bin_add(FragmentOffset, FragmentLength, Add, Buffer) ->
<<First:FragmentOffset/bytes, _:FragmentLength/bytes, Rest/binary>> = Buffer,