Skip to content

Commit

Permalink
Merge branch 'ingela/ssl/fix-assert/GH-8908/OTP-19288' into maint-27
Browse files Browse the repository at this point in the history
* ingela/ssl/fix-assert/GH-8908/OTP-19288:
  ssl: Fix version assertion
  • Loading branch information
Erlang/OTP committed Oct 17, 2024
2 parents 2164f02 + 031e4d0 commit 5bfe5aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ssl/src/tls_handshake.erl
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ hello(#client_hello{client_version = _ClientVersion,
#{versions := Versions = [Version |_]} = SslOpts,
Info, Renegotiation) when ?TLS_GTE(Version, ?TLS_1_2)->
try
Version = ssl_handshake:select_supported_version(ClientVersions, Versions),
do_hello(Version, Versions, CipherSuites, Hello, SslOpts, Info, Renegotiation)
SelectedVersion = ssl_handshake:select_supported_version(ClientVersions, Versions),
do_hello(SelectedVersion, Versions, CipherSuites, Hello, SslOpts, Info, Renegotiation)
catch
error:Reason:ST ->
?SSL_LOG(info, handshake_error, [{reason,Reason}, {stacktrace, ST}]),
Expand Down

0 comments on commit 5bfe5aa

Please sign in to comment.