From 145c263a4ba649a2f1811ab8d0b86c98de26ad16 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 9 Dec 2014 11:45:43 +0100 Subject: schannel_recv: return the correct code Bug: http://curl.haxx.se/bug/view.cgi?id=1462 Reported-by: Tae Hyoung Ahn --- lib/vtls/curl_schannel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vtls/curl_schannel.c b/lib/vtls/curl_schannel.c index 3a740bd28..bc8f58ac5 100644 --- a/lib/vtls/curl_schannel.c +++ b/lib/vtls/curl_schannel.c @@ -1013,6 +1013,8 @@ schannel_recv(struct connectdata *conn, int sockindex, infof(data, "schannel: decrypted data buffer: offset %zu length %zu\n", connssl->decdata_offset, connssl->decdata_length); } + else + ret = 0; /* check if the server closed the connection */ if(ret <= 0 && ( /* special check for Windows 2000 Professional */ -- cgit v1.2.3