diff options
author | Ingela Anderton Andin <[email protected]> | 2019-05-06 16:05:59 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2019-05-06 16:05:59 +0200 |
commit | 8ad504d6013adccd85d488d64b9c5f7134e3ecd5 (patch) | |
tree | 23814720ada2fdf0de8d084da9ec4926913f9468 /lib/ssl | |
parent | 625d19ddcb62abbdf3d6817c3e8d556aa7a03957 (diff) | |
parent | 5e639dba012a2701eaf74cbbbf0cdc301c070266 (diff) | |
download | otp-8ad504d6013adccd85d488d64b9c5f7134e3ecd5.tar.gz otp-8ad504d6013adccd85d488d64b9c5f7134e3ecd5.tar.bz2 otp-8ad504d6013adccd85d488d64b9c5f7134e3ecd5.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssl')
-rw-r--r-- | lib/ssl/src/tls_connection.erl | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl index a05858221a..872a557e67 100644 --- a/lib/ssl/src/tls_connection.erl +++ b/lib/ssl/src/tls_connection.erl @@ -171,19 +171,21 @@ next_record(#state{protocol_buffers = connection_states = ConnectionStates, ssl_options = #ssl_options{padding_check = Check}} = State) -> next_record(State, CipherTexts, ConnectionStates, Check); -next_record(#state{protocol_buffers = #protocol_buffers{tls_cipher_texts = []}, - protocol_specific = #{active_n_toggle := true, active_n := N} = ProtocolSpec, +next_record(#state{user_data_buffer = {_,0,_}, + protocol_buffers = #protocol_buffers{tls_cipher_texts = []}, + protocol_specific = #{active_n_toggle := true, + active_n := N} = ProtocolSpec, static_env = #static_env{socket = Socket, close_tag = CloseTag, transport_cb = Transport} - } = State) -> + } = State) -> case tls_socket:setopts(Transport, Socket, [{active, N}]) of ok -> - {no_record, State#state{protocol_specific = ProtocolSpec#{active_n_toggle => false}}}; + {no_record, State#state{protocol_specific = ProtocolSpec#{active_n_toggle => false}}}; _ -> - self() ! {CloseTag, Socket}, - {no_record, State} - end; + self() ! {CloseTag, Socket}, + {no_record, State} + end; next_record(State) -> {no_record, State}. |