aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-04-09 20:31:44 +0200
committerIngela Anderton Andin <[email protected]>2017-04-13 11:14:07 +0200
commitffb26d5094dd3de378fd0ecccfd48da22a1a8df0 (patch)
tree505aef8601f84ee36a18d84a0a75aa1ea8d05bf9
parent7e0d6f8fa3b5feb3dc6552d7d51ecd07f5f0af3f (diff)
downloadotp-ffb26d5094dd3de378fd0ecccfd48da22a1a8df0.tar.gz
otp-ffb26d5094dd3de378fd0ecccfd48da22a1a8df0.tar.bz2
otp-ffb26d5094dd3de378fd0ecccfd48da22a1a8df0.zip
dtls: Correct cookie map name
-rw-r--r--lib/ssl/src/dtls_connection.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index e5f33d8409..440607e99d 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -495,10 +495,10 @@ handle_info({CloseTag, Socket}, StateName,
end;
handle_info(new_cookie_secret, StateName,
- #state{protocol_specific = #{cookie_secret := Secret} = CookieInfo} = State) ->
+ #state{protocol_specific = #{current_cookie_secret := Secret} = CookieInfo} = State) ->
erlang:send_after(dtls_v1:cookie_timeout(), self(), new_cookie_secret),
{next_state, StateName, State#state{protocol_specific =
- CookieInfo#{cookie_secret => dtls_v1:cookie_secret(),
+ CookieInfo#{current_cookie_secret => dtls_v1:cookie_secret(),
previous_cookie_secret => Secret}}};
handle_info(Msg, StateName, State) ->
ssl_connection:handle_info(Msg, StateName, State).