aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2019-02-22 10:24:09 +0100
committerRaimo Niskanen <[email protected]>2019-02-22 10:24:09 +0100
commit2597120931fc2834cc0eab9fc9cb676ed48aaa22 (patch)
tree11303e4ed2f21e60240d8cd8e61d13dd985ab211 /lib/ssl
parent4327304462128ce983de8e962f683e702a80f64e (diff)
downloadotp-2597120931fc2834cc0eab9fc9cb676ed48aaa22.tar.gz
otp-2597120931fc2834cc0eab9fc9cb676ed48aaa22.tar.bz2
otp-2597120931fc2834cc0eab9fc9cb676ed48aaa22.zip
Fix dialyzer error and wrong StateName match bug
Diffstat (limited to 'lib/ssl')
-rw-r--r--lib/ssl/src/tls_connection.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index 39b0b3e53a..9a896971ef 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -252,14 +252,12 @@ next_event(StateName, Record, State, Actions) ->
%%% TLS record protocol level application data messages
-handle_protocol_record(#ssl_tls{type = ?APPLICATION_DATA, fragment = Data}, StateName, State0) ->
+handle_protocol_record(#ssl_tls{type = ?APPLICATION_DATA, fragment = Data}, StateName0, State0) ->
case ssl_connection:read_application_data(Data, State0) of
{stop, _, _} = Stop->
Stop;
{Record, State1} ->
- case next_event(StateName, Record, State1) of
- {next_state, StateName, State} ->
- ssl_connection:hibernate_after(StateName, State, []);
+ case next_event(StateName0, Record, State1) of
{next_state, StateName, State, Actions} ->
ssl_connection:hibernate_after(StateName, State, Actions);
{stop, _, _} = Stop ->