Chromium Code Reviews
DescriptionFix a crash in net::SSLClientSocketWin::OnIOComplete(int) when
an HttpNetworkTransaction is destroyed while its SSLClientSocket
is verifying a certificate.
Document that ClientSocket::Disconnect aborts any pending IO and
prevents completion callback from running, like a cancel method.
Change the verifier_ member of SSLClientSocket to a scoped_ptr so
that we can destroy the CertVerifier object in the Disconnect method.
(CertVerifier doesn't have a cancel method, so we cancel pending
certificate verification by destroying the CertVerifier object.)
R=willchan
BUG=http://crbug.com/13981
TEST=none. I can only reproduce this crash by modifying the
source code to create that condition.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19307
Patch Set 1 #Patch Set 2 : Remove cert_verifier.h from this CL #
Total comments: 4
Patch Set 3 : Fix Linux compilation errors and add DCHECK #Patch Set 4 : Upload before checkin #
Messages
Total messages: 5 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||