summaryrefslogtreecommitdiffstats
path: root/net/base/ssl_client_socket_win.cc
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 19:16:05 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 19:16:05 +0000
commit70cbae67f090da022412d43f86684a6a026847cf (patch)
treee2687e853aefe6fb9af1888f6935123f00eeffee /net/base/ssl_client_socket_win.cc
parent8756341fb6664d82ad4662a1df65c33b209d0849 (diff)
downloadchromium_src-70cbae67f090da022412d43f86684a6a026847cf.zip
chromium_src-70cbae67f090da022412d43f86684a6a026847cf.tar.gz
chromium_src-70cbae67f090da022412d43f86684a6a026847cf.tar.bz2
Return ERR_SSL_PROTOCOL_ERROR instead of the default
ERR_FAILED when we read EOF during the SSL handshake. The ERR_SSL_PROTOCOL_ERROR error code will allow the TLS-intolerant server handling code in http_network_transaction.cc to kick in if necessary. R=eroman BUG=5894 Review URL: http://codereview.chromium.org/18606 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/ssl_client_socket_win.cc')
-rw-r--r--net/base/ssl_client_socket_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/ssl_client_socket_win.cc b/net/base/ssl_client_socket_win.cc
index 9f3248b..beeaba9 100644
--- a/net/base/ssl_client_socket_win.cc
+++ b/net/base/ssl_client_socket_win.cc
@@ -631,7 +631,7 @@ int SSLClientSocketWin::DoHandshakeReadComplete(int result) {
if (result < 0)
return result;
if (result == 0 && !ignore_ok_result_)
- return ERR_FAILED; // Incomplete response :(
+ return ERR_SSL_PROTOCOL_ERROR; // Incomplete response :(
ignore_ok_result_ = false;