Aric Stewart : secur32: Return success on graceful close of SSL connection.

Alexandre Julliard julliard at winehq.org
Sat Feb 22 09:50:03 CST 2014


Module: wine
Branch: master
Commit: 3218cc077e1586bd2dcc3c10fa7cb03477dcc3c6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3218cc077e1586bd2dcc3c10fa7cb03477dcc3c6

Author: Aric Stewart <aric at codeweavers.com>
Date:   Fri Feb 21 07:37:56 2014 +0900

secur32: Return success on graceful close of SSL connection.

---

 dlls/secur32/schannel_macosx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/secur32/schannel_macosx.c b/dlls/secur32/schannel_macosx.c
index 5d88223..7a29c7b 100644
--- a/dlls/secur32/schannel_macosx.c
+++ b/dlls/secur32/schannel_macosx.c
@@ -977,7 +977,7 @@ SECURITY_STATUS schan_imp_recv(schan_imp_session session, void *buffer,
     TRACE("(%p/%p, %p, %p/%lu)\n", s, s->context, buffer, length, *length);
 
     status = SSLRead(s->context, buffer, *length, length);
-    if (status == noErr)
+    if (status == noErr || status == errSSLClosedGraceful)
         TRACE("Read %lu bytes\n", *length);
     else if (status == errSSLWouldBlock)
     {




More information about the wine-cvs mailing list