From: Daniel Stenberg Date: Tue, 9 Dec 2014 10:45:43 +0000 (+0100) Subject: schannel_recv: return the correct code X-Git-Tag: curl-7_40_0~191 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=145c263;p=thirdparty%2Fcurl.git schannel_recv: return the correct code Bug: http://curl.haxx.se/bug/view.cgi?id=1462 Reported-by: Tae Hyoung Ahn --- diff --git a/lib/vtls/curl_schannel.c b/lib/vtls/curl_schannel.c index 3a740bd28d..bc8f58ac5b 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 */