aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_handshake.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2018-08-09 17:28:30 +0200
committerErlang/OTP <[email protected]>2018-08-09 17:28:30 +0200
commit4800273fc10934eac12411f7b613a57c76262157 (patch)
tree36f77e47facf450785c60166310af0bda98e43e7 /lib/ssl/src/ssl_handshake.erl
parentdc4853b3073115c922d22d2a436c1f67840bd2f0 (diff)
parentebc10f445fc4ddda90c2e0888baf310a9370cb33 (diff)
downloadotp-4800273fc10934eac12411f7b613a57c76262157.tar.gz
otp-4800273fc10934eac12411f7b613a57c76262157.tar.bz2
otp-4800273fc10934eac12411f7b613a57c76262157.zip
Merge branch 'ingela/ssl/empty-sni/OTP-15168' into maint-20
* ingela/ssl/empty-sni/OTP-15168: ssl: Correct handling of empty server SNI extension
Diffstat (limited to 'lib/ssl/src/ssl_handshake.erl')
-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 49fb76118a..cd601c04c0 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -1850,7 +1850,7 @@ dec_hello_extensions(<<?UINT16(?EC_POINT_FORMATS_EXT), ?UINT16(Len),
ECPointFormats}});
dec_hello_extensions(<<?UINT16(?SNI_EXT), ?UINT16(Len), Rest/binary>>, Acc) when Len == 0 ->
- dec_hello_extensions(Rest, Acc#hello_extensions{sni = ""}); %% Server may send an empy SNI
+ dec_hello_extensions(Rest, Acc#hello_extensions{sni = #sni{hostname = ""}}); %% Server may send an empy SNI
dec_hello_extensions(<<?UINT16(?SNI_EXT), ?UINT16(Len),
ExtData:Len/binary, Rest/binary>>, Acc) ->