aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/tls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-01-29 15:12:41 +0100
committerIngela Anderton Andin <[email protected]>2019-02-08 09:22:26 +0100
commite8ccff6724b8bd82f4eddb6255a059b10a787722 (patch)
tree8b91b06f707c9f0186837e3c853b68fcf35bc225 /lib/ssl/src/tls_connection.erl
parent2b9412e026ab58bac5b61f239d607db6482974ef (diff)
downloadotp-e8ccff6724b8bd82f4eddb6255a059b10a787722.tar.gz
otp-e8ccff6724b8bd82f4eddb6255a059b10a787722.tar.bz2
otp-e8ccff6724b8bd82f4eddb6255a059b10a787722.zip
ssl: Add key exchange items to handshake_env
Diffstat (limited to 'lib/ssl/src/tls_connection.erl')
-rw-r--r--lib/ssl/src/tls_connection.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index 684910db10..fd60ca0cf8 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -348,8 +348,8 @@ reinit_handshake_data(#state{handshake_env = HsEnv} =State) ->
%% To reduce memory foot print of a connection reinitialize them.
State#state{
premaster_secret = undefined,
- public_key_info = undefined,
- handshake_env = HsEnv#handshake_env{tls_handshake_history = ssl_handshake:init_handshake_history()}
+ handshake_env = HsEnv#handshake_env{tls_handshake_history = ssl_handshake:init_handshake_history(),
+ public_key_info = undefined}
}.
select_sni_extension(#client_hello{extensions = HelloExtensions}) ->