From ffb26d5094dd3de378fd0ecccfd48da22a1a8df0 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Sun, 9 Apr 2017 20:31:44 +0200 Subject: dtls: Correct cookie map name --- lib/ssl/src/dtls_connection.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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). -- cgit v1.2.3