aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-12-09 11:45:43 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-12-09 11:46:11 +0100
commit145c263a4ba649a2f1811ab8d0b86c98de26ad16 (patch)
treeda86bb5aaeb66380b3511dc1bc826fe4a444b270 /lib
parent680d5fd041a64c14b29de2eeb8b14d4cdb199b8b (diff)
schannel_recv: return the correct code
Bug: http://curl.haxx.se/bug/view.cgi?id=1462 Reported-by: Tae Hyoung Ahn
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/curl_schannel.c2
1 files changed, 2 insertions, 0 deletions
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 */