diff options
author | Péter Dimitrov <[email protected]> | 2019-02-08 10:48:30 +0100 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2019-02-08 10:48:30 +0100 |
commit | 04d0ef851061ba93eaa97a9e982a2820eda5d0cd (patch) | |
tree | c7203d6a5b9a58de890f8e438f4ee22e9228772f /lib/ssl/src/tls_record.erl | |
parent | be3a0a259cd04e4c92cf285a6ad5003f986fd93f (diff) | |
download | otp-04d0ef851061ba93eaa97a9e982a2820eda5d0cd.tar.gz otp-04d0ef851061ba93eaa97a9e982a2820eda5d0cd.tar.bz2 otp-04d0ef851061ba93eaa97a9e982a2820eda5d0cd.zip |
ssl: Fix crash when sending Alerts
Change-Id: Ia84c71214b5379baec3455f0e416a9ea73584750
Diffstat (limited to 'lib/ssl/src/tls_record.erl')
-rw-r--r-- | lib/ssl/src/tls_record.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/tls_record.erl b/lib/ssl/src/tls_record.erl index d7ea12ec3f..96e851de41 100644 --- a/lib/ssl/src/tls_record.erl +++ b/lib/ssl/src/tls_record.erl @@ -119,7 +119,7 @@ encode_handshake(Frag, Version, %% Description: Encodes an alert message to send on the ssl-socket. %%-------------------------------------------------------------------- encode_alert_record(Alert, {3, 4}, ConnectionStates) -> - tls_record_1_3:encode_handshake(Alert, ConnectionStates); + tls_record_1_3:encode_alert_record(Alert, ConnectionStates); encode_alert_record(#alert{level = Level, description = Description}, Version, ConnectionStates) -> encode_plain_text(?ALERT, Version, <<?BYTE(Level), ?BYTE(Description)>>, |