]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_schannel.c: Data may be available before connection shutdown
authorMarc Hoersken <info@marc-hoersken.de>
Sun, 14 Dec 2014 15:40:49 +0000 (16:40 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Sun, 14 Dec 2014 15:40:49 +0000 (16:40 +0100)
lib/vtls/curl_schannel.c

index bc8f58ac5b7bb6fd519e350252e22118f8dfd186..f31e9c273fe114623707c687a9133b57b4ef6a65 100644 (file)
@@ -912,10 +912,11 @@ schannel_recv(struct connectdata *conn, int sockindex,
     }
 
     /* check if everything went fine (server may want to renegotiate
-       context) */
+       or shutdown the connection context) */
     if(sspi_status == SEC_E_OK || sspi_status == SEC_I_RENEGOTIATE ||
                                   sspi_status == SEC_I_CONTEXT_EXPIRED) {
-      /* check for successfully decrypted data */
+      /* check for successfully decrypted data, even before actual
+         renegotiation or shutdown of the connection context */
       if(inbuf[1].BufferType == SECBUFFER_DATA) {
         infof(data, "schannel: decrypted data length: %lu\n",
               inbuf[1].cbBuffer);