Skip to content

Commit

Permalink
Merge branch 'ingela/ssl/fix-assert/GH-8908/OTP-19288' into maint
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
IngelaAndin committed Oct 9, 2024
2 parents 011fa72 + 031e4d0 commit f34d0e5
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 f34d0e5

Please sign in to comment.