Index: net/socket/ssl_client_socket_openssl.cc |
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc |
index aa45a9d3a830260837568207fbac8c666e25c01a..04be9881e170f4ca6289ee17f15c1e99642c4ebf 100644 |
--- a/net/socket/ssl_client_socket_openssl.cc |
+++ b/net/socket/ssl_client_socket_openssl.cc |
@@ -907,6 +907,11 @@ int SSLClientSocketOpenSSL::DoHandshake() { |
<< " is: " << (SSL_session_reused(ssl_) ? "Success" : "Fail"); |
} |
+ if (ssl_config_.version_fallback && |
+ ssl_config_.version_max < ssl_config_.version_fallback_min) { |
+ return ERR_SSL_FALLBACK_BEYOND_MINIMUM_VERSION; |
+ } |
+ |
// SSL handshake is completed. If NPN wasn't negotiated, see if ALPN was. |
if (npn_status_ == kNextProtoUnsupported) { |
const uint8_t* alpn_proto = NULL; |