Index: net/socket/ssl_client_socket_nss.cc |
diff --git a/net/socket/ssl_client_socket_nss.cc b/net/socket/ssl_client_socket_nss.cc |
index c37d690ad07489a3ca3e55250be16bed94273d3b..54758e29f4ac9edddf0f24dca7ee15a2902f939a 100644 |
--- a/net/socket/ssl_client_socket_nss.cc |
+++ b/net/socket/ssl_client_socket_nss.cc |
@@ -2935,6 +2935,9 @@ SSLClientSocketNSS::GetNextProto(std::string* proto, |
int SSLClientSocketNSS::Connect(const CompletionCallback& callback) { |
EnterFunction(""); |
DCHECK(transport_.get()); |
+ // It is an error to create an SSLClientSocket whose context has no |
+ // TransportSecurityState. |
+ DCHECK(transport_security_state_); |
DCHECK_EQ(STATE_NONE, next_handshake_state_); |
DCHECK(user_connect_callback_.is_null()); |
DCHECK(!callback.is_null()); |