summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 12:25:32 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 12:25:32 +0000
commit34c9dffe2e0ad02c441098b960e4ff593748584e (patch)
treed08e1748860b54ecbd4e490556071cef4223b61f
parent9f6ecfc92f1a3fd332e9c07592a71b8e22bd4fd9 (diff)
downloadchromium_src-34c9dffe2e0ad02c441098b960e4ff593748584e.zip
chromium_src-34c9dffe2e0ad02c441098b960e4ff593748584e.tar.gz
chromium_src-34c9dffe2e0ad02c441098b960e4ff593748584e.tar.bz2
Properly let the SSL engine know when the underlying stream is closed.
BUG=http://crbug.com/14196 TEST=NONE (this fix is related to the bug but does not fix it) Review URL: http://codereview.chromium.org/155595 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20864 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/socket/ssl_client_socket_mac.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/socket/ssl_client_socket_mac.cc b/net/socket/ssl_client_socket_mac.cc
index bd1f60d..db42c1a 100644
--- a/net/socket/ssl_client_socket_mac.cc
+++ b/net/socket/ssl_client_socket_mac.cc
@@ -716,8 +716,10 @@ OSStatus SSLClientSocketMac::SSLReadCallback(SSLConnectionRef connection,
if (rv < 0)
return OSStatusFromNetError(rv);
-
- return noErr;
+ else if (rv == 0) // stream closed
+ return errSSLClosedGraceful;
+ else
+ return noErr;
}
// static