Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERL-232: httpc:request("https://ssllabs:com:10444") not working correctly #3133

Closed
OTP-Maintainer opened this issue Aug 26, 2016 · 1 comment
Assignees
Labels
bug Issue is reported as a bug priority:medium team:PS Assigned to OTP team PS
Milestone

Comments

@OTP-Maintainer
Copy link

Original reporter: alklasil
Affected version: OTP-19.0
Fixed in version: OTP-19.1
Component: Not Specified
Migrated from: https://bugs.erlang.org/browse/ERL-232


*www.ssllabs.com:10444 - (FREAK attack test)*

*Erlang/OTP 19*
httpc:request("https://www.ssllabs.com:10444")
'hangs'

*Erlang/OTP 18*
httpc:request("https://www.ssllabs.com:10444")
{failed_connect,[{to_address,{"www.ssllabs.com",10444}},
                 {inet,[inet],{tls_alert,"unexpected message"}}]}

@OTP-Maintainer
Copy link
Author

ingela said:

This patch make it work for me. I need to test some more to make sure I did not break anything else. But it seems there is a "catch all" that should not be there.

diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index adee593..8a99087 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -824,8 +824,6 @@ handle_common_event(internal, #change_cipher_spec{type = <<1>>}, StateName,
 		    #state{negotiated_version = Version} = State, Connection) ->
     Connection:handle_own_alert(?ALERT_REC(?FATAL, ?HANDSHAKE_FAILURE), Version, 
 				StateName, State);
-handle_common_event(internal, _, _, _, _) ->
-    {keep_state_and_data, [postpone]};
 handle_common_event(_Type, Msg, StateName, #state{negotiated_version = Version} = State, 
 		    Connection) ->
     Alert =  ?ALERT_REC(?FATAL,?UNEXPECTED_MESSAGE),

@OTP-Maintainer OTP-Maintainer added bug Issue is reported as a bug team:PS Assigned to OTP team PS priority:medium labels Feb 10, 2021
@OTP-Maintainer OTP-Maintainer added this to the OTP-19.1 milestone Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug priority:medium team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

2 participants