[2/2] secur32: Handle EOF from gnutls_record_recv.

Hans Leidekker hans at codeweavers.com
Thu Nov 19 02:30:33 CST 2009


Fixes http://bugs.winehq.org/show_bug.cgi?id=20622
---
 dlls/secur32/schannel.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index af94024..27cb1b7 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -1203,6 +1203,9 @@ static SECURITY_STATUS SEC_ENTRY schan_DecryptMessage(PCtxtHandle context_handle
                 return SEC_E_INTERNAL_ERROR;
             }
         }
+        else if (!ret)
+            break;
+
         received += ret;
     }
 
-- 
1.6.3.3




More information about the wine-patches mailing list