aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-02-19 15:11:05 +0100
committerIngela Anderton Andin <[email protected]>2018-02-19 15:11:05 +0100
commit9b8ccd4884ce479988868d72644fbd9e85170025 (patch)
tree626cb141b1224e4ab0516b22043d1fa6cd5b50db /lib/ssl/src/ssl_connection.erl
parent2e7160f3c28d495a8b798c5f8b484b1b977cee8e (diff)
downloadotp-9b8ccd4884ce479988868d72644fbd9e85170025.tar.gz
otp-9b8ccd4884ce479988868d72644fbd9e85170025.tar.bz2
otp-9b8ccd4884ce479988868d72644fbd9e85170025.zip
ssl: Backport PR-1709
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r--lib/ssl/src/ssl_connection.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index 0e51106bfb..2db9172d50 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -858,8 +858,8 @@ handle_common_event(internal, #change_cipher_spec{type = <<1>>}, StateName,
StateName, State);
handle_common_event(_Type, Msg, StateName, #state{negotiated_version = Version} = State,
_) ->
- Alert = ?ALERT_REC(?FATAL,?UNEXPECTED_MESSAGE),
- handle_own_alert(Alert, Version, {StateName, Msg}, State).
+ Alert = ?ALERT_REC(?FATAL,?UNEXPECTED_MESSAGE, {unexpected_msg, Msg}),
+ handle_own_alert(Alert, Version, StateName, State).
handle_call({application_data, _Data}, _, _, _, _) ->
%% In renegotiation priorities handshake, send data when handshake is finished