diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2018-07-02 15:37:56 +0200 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2018-07-02 16:02:20 +0200 |
commit | ebc10f445fc4ddda90c2e0888baf310a9370cb33 (patch) | |
tree | 8f015d0a8d6db85530ee602c8606137c8293ac7e /lib/ssl/src/ssl_handshake.erl | |
parent | 40ab3958644be3fc14682c54233514fdf880386a (diff) | |
download | otp-ebc10f445fc4ddda90c2e0888baf310a9370cb33.tar.gz otp-ebc10f445fc4ddda90c2e0888baf310a9370cb33.tar.bz2 otp-ebc10f445fc4ddda90c2e0888baf310a9370cb33.zip |
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.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl index 8b1ea52ac9..dd194275ac 100644 --- a/lib/ssl/src/ssl_handshake.erl +++ b/lib/ssl/src/ssl_handshake.erl @@ -1849,7 +1849,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) -> |