diff options
author | Fredrik Gustafsson <[email protected]> | 2013-10-23 15:55:40 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-10-23 15:55:40 +0200 |
commit | e325f51fc3ae56d732db85e6d8bb62bf83d39c2b (patch) | |
tree | 5eb7e00b6f53d86dbfc97acb93b99163671501e5 /lib | |
parent | b460449bcd928a5cf8e308036a64f45a94d306d4 (diff) | |
parent | f7093361e9b561091317f7425efb9b1368eb0da5 (diff) | |
download | otp-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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssl/src/dtls_handshake.erl | 2 |
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, |