aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-01-29 10:02:22 +0100
committerIngela Anderton Andin <[email protected]>2019-02-08 09:22:25 +0100
commit6d6a624193e319e5f3befdc11fd126e778d1a0e9 (patch)
tree64e5151737b161bff81a9b5fa6ede27a94fd982b /lib/ssl/src/dtls_connection.erl
parentf69963a389fa1f933fee0664e8bb453389977b14 (diff)
downloadotp-6d6a624193e319e5f3befdc11fd126e778d1a0e9.tar.gz
otp-6d6a624193e319e5f3befdc11fd126e778d1a0e9.tar.bz2
otp-6d6a624193e319e5f3befdc11fd126e778d1a0e9.zip
ssl: Create connection_env
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index ac380f2595..178668e808 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -796,6 +796,7 @@ initial_state(Role, Host, Port, Socket, {SSLOptions, SocketOptions, _}, User,
renegotiation = {false, first},
allow_renegotiate = SSLOptions#ssl_options.client_renegotiation
},
+ connection_env = #connection_env{user_application = {Monitor, User}},
socket_options = SocketOptions,
%% We do not want to save the password in the state so that
%% could be written in the clear into error logs.
@@ -803,7 +804,6 @@ initial_state(Role, Host, Port, Socket, {SSLOptions, SocketOptions, _}, User,
session = #session{is_resumable = new},
connection_states = ConnectionStates,
protocol_buffers = #protocol_buffers{},
- user_application = {Monitor, User},
user_data_buffer = <<>>,
start_or_recv_from = undefined,
flight_buffer = new_flight(),