aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src
diff options
context:
space:
mode:
authorAndrey Mayorov <[email protected]>2015-12-11 03:23:53 +0300
committerHenrik Nord <[email protected]>2016-02-09 10:45:44 +0100
commit2c7cee6ae55fbcb8e5f84caa3920420506c3a317 (patch)
tree8be835cd4b0564e7787a2b3cb8913b5fea044457 /lib/ssl/src
parent05cef5e3a267b3515acb834130675e0cbf69bf78 (diff)
downloadotp-2c7cee6ae55fbcb8e5f84caa3920420506c3a317.tar.gz
otp-2c7cee6ae55fbcb8e5f84caa3920420506c3a317.tar.bz2
otp-2c7cee6ae55fbcb8e5f84caa3920420506c3a317.zip
ssl: fix hibernate_after with short timeouts
Too wide function clause was used in ssl_connection which led to ssl connection process crashes when `{hibernate_after, N}` with extremely small N was passed among other options to `ssl:connect`.
Diffstat (limited to 'lib/ssl/src')
-rw-r--r--lib/ssl/src/tls_connection.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index 77d3aa7889..887fb8fda1 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -202,7 +202,7 @@ hello(Hello = #client_hello{client_version = ClientVersion,
#alert{} = Alert ->
handle_own_alert(Alert, ClientVersion, hello, State)
end;
-hello(Hello,
+hello(Hello = #server_hello{},
#state{connection_states = ConnectionStates0,
negotiated_version = ReqVersion,
role = client,