Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: net/socket/ssl_client_socket_mac.cc

Issue 503038: Fix SSL error code for unexpected errSSLClosedGraceful on Mac (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_mac.cc
diff --git a/net/socket/ssl_client_socket_mac.cc b/net/socket/ssl_client_socket_mac.cc
index 492a6754399f2416c5eeebc06229c7288ab6c7ad..4bc6ae804925e94e4afb2a2c741842e3b6f8c7c2 100644
--- a/net/socket/ssl_client_socket_mac.cc
+++ b/net/socket/ssl_client_socket_mac.cc
@@ -709,9 +709,10 @@ int SSLClientSocketMac::DoHandshakeStart() {
}
}
- if (status == errSSLClosedGraceful)
+ if (status == errSSLClosedGraceful) {
// The server unexpectedly closed on us.
- return ERR_UNEXPECTED;
+ return ERR_SSL_PROTOCOL_ERROR;
+ }
int net_error = NetErrorFromOSStatus(status);
if (status == noErr || IsCertificateError(net_error)) {
@@ -769,7 +770,7 @@ int SSLClientSocketMac::DoHandshakeFinish() {
next_handshake_state_ = STATE_HANDSHAKE_FINISH;
if (status == errSSLClosedGraceful)
- return ERR_UNEXPECTED;
+ return ERR_SSL_PROTOCOL_ERROR;
if (status == noErr) {
completed_handshake_ = true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698