]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel_recv: return the correct code
authorDaniel Stenberg <daniel@haxx.se>
Tue, 9 Dec 2014 10:45:43 +0000 (11:45 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Dec 2014 10:46:11 +0000 (11:46 +0100)
Bug: http://curl.haxx.se/bug/view.cgi?id=1462
Reported-by: Tae Hyoung Ahn
lib/vtls/curl_schannel.c

index 3a740bd28d0d331f058efc7bedeeba2f7385c645..bc8f58ac5b7bb6fd519e350252e22118f8dfd186 100644 (file)
@@ -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 */