From 5db1ae621ac7a1ab4fc19ca8bde53282561f88a0 Mon Sep 17 00:00:00 2001 From: "paul@chromium.org" Date: Tue, 19 May 2009 19:07:27 +0000 Subject: Remove an incorrect DCHECK. Neither the nss or Windows GetSSLInfo methods check this condition, which can be called in error situations. Review URL: http://codereview.chromium.org/113559 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16397 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/ssl_client_socket_mac.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'net') diff --git a/net/base/ssl_client_socket_mac.cc b/net/base/ssl_client_socket_mac.cc index 298a1a7..2d68771 100644 --- a/net/base/ssl_client_socket_mac.cc +++ b/net/base/ssl_client_socket_mac.cc @@ -390,14 +390,11 @@ int SSLClientSocketMac::Write(IOBuffer* buf, int buf_len, } void SSLClientSocketMac::GetSSLInfo(SSLInfo* ssl_info) { - DCHECK(completed_handshake_); - OSStatus status; - ssl_info->Reset(); // set cert CFArrayRef certs; - status = SSLCopyPeerCertificates(ssl_context_, &certs); + OSStatus status = SSLCopyPeerCertificates(ssl_context_, &certs); if (!status) { DCHECK(CFArrayGetCount(certs) > 0); -- cgit v1.1