From 2597120931fc2834cc0eab9fc9cb676ed48aaa22 Mon Sep 17 00:00:00 2001 From: Raimo Niskanen Date: Fri, 22 Feb 2019 10:24:09 +0100 Subject: Fix dialyzer error and wrong StateName match bug --- lib/ssl/src/tls_connection.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') 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 -> -- cgit v1.2.3