diff options
author | hawk@chromium.org <hawk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 18:28:47 +0000 |
---|---|---|
committer | hawk@chromium.org <hawk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 18:28:47 +0000 |
commit | d821518721ab742598b76f7cf7afc562f0c14b79 (patch) | |
tree | 05f777f34243402aab994c40c4c756b3d1054c68 /net/socket/ssl_client_socket_mac.cc | |
parent | 25e1d6c2cd56edeb5815730d182c8a9a4db85deb (diff) | |
download | chromium_src-d821518721ab742598b76f7cf7afc562f0c14b79.zip chromium_src-d821518721ab742598b76f7cf7afc562f0c14b79.tar.gz chromium_src-d821518721ab742598b76f7cf7afc562f0c14b79.tar.bz2 |
Uncouple the cert verifier when disconnecting to avoid a callback after a SSLClientSocketMac object has bee freed.
BUG=21832
TEST=none
Review URL: http://codereview.chromium.org/206007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26236 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_client_socket_mac.cc')
-rw-r--r-- | net/socket/ssl_client_socket_mac.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/socket/ssl_client_socket_mac.cc b/net/socket/ssl_client_socket_mac.cc index 23dfb60..0f83ad7 100644 --- a/net/socket/ssl_client_socket_mac.cc +++ b/net/socket/ssl_client_socket_mac.cc @@ -431,6 +431,8 @@ void SSLClientSocketMac::Disconnect() { ssl_context_ = NULL; } + // Shut down anything that may call us back. + verifier_.reset(); transport_->Disconnect(); } |