diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-12-09 11:45:43 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-12-09 11:46:11 +0100 |
commit | 145c263a4ba649a2f1811ab8d0b86c98de26ad16 (patch) | |
tree | da86bb5aaeb66380b3511dc1bc826fe4a444b270 | |
parent | 680d5fd041a64c14b29de2eeb8b14d4cdb199b8b (diff) |
schannel_recv: return the correct code
Bug: http://curl.haxx.se/bug/view.cgi?id=1462
Reported-by: Tae Hyoung Ahn
-rw-r--r-- | lib/vtls/curl_schannel.c | 2 |
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 */ |