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 cf216880ac40aea936115d8d159df2ed8b754bf2..3b5cc215bd32487d70a47c025200bc6c9dcece33 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()); |