aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2019-01-21 15:06:23 +0100
committerPéter Dimitrov <[email protected]>2019-01-28 09:37:08 +0100
commit39acdd9f3dd43e6d008b9d3bddeade95e5f206af (patch)
treee15ce2eadf2fa70dc82d813d5a18e17ab4bfdb42 /lib
parenta0d770fb9979c295fd0b9f69c9c558e3b8250072 (diff)
downloadotp-39acdd9f3dd43e6d008b9d3bddeade95e5f206af.tar.gz
otp-39acdd9f3dd43e6d008b9d3bddeade95e5f206af.tar.bz2
otp-39acdd9f3dd43e6d008b9d3bddeade95e5f206af.zip
ssl: Fix encoding of empty extensions
Change-Id: Ia18cda4e2b43dc863a24ac4838718adc788b08b1
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/src/ssl_handshake.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index 5e3c767c2c..a28f4add1b 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -592,7 +592,7 @@ encode_extensions(Exts) ->
encode_extensions(Exts, <<>>).
encode_extensions([], <<>>) ->
- <<>>;
+ <<?UINT16(0)>>;
encode_extensions([], Acc) ->
Size = byte_size(Acc),
<<?UINT16(Size), Acc/binary>>;