summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/socket/ssl_client_socket_nss.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket/ssl_client_socket_nss.cc b/net/socket/ssl_client_socket_nss.cc
index 0965cc56..186cc86 100644
--- a/net/socket/ssl_client_socket_nss.cc
+++ b/net/socket/ssl_client_socket_nss.cc
@@ -611,7 +611,7 @@ int SSLClientSocketNSS::Connect(CompletionCallback* callback) {
return rv;
}
- if (ssl_host_info_.get()) {
+ if (ssl_config_.cached_info_enabled && ssl_host_info_.get()) {
GotoState(STATE_LOAD_SSL_HOST_INFO);
} else {
GotoState(STATE_HANDSHAKE);
@@ -1396,7 +1396,7 @@ int SSLClientSocketNSS::DoLoadSSLHostInfo() {
GotoState(STATE_HANDSHAKE);
if (rv == OK) {
- if (ssl_config_.cached_info_enabled && !LoadSSLHostInfo())
+ if (!LoadSSLHostInfo())
LOG(WARNING) << "LoadSSLHostInfo failed: " << host_and_port_.ToString();
} else {
DCHECK_EQ(ERR_IO_PENDING, rv);