]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: make ossl_send return CURLE_OK better
authorDaniel Stenberg <daniel@haxx.se>
Thu, 31 Jul 2014 22:01:02 +0000 (00:01 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 31 Jul 2014 22:01:02 +0000 (00:01 +0200)
Previously it only returned a CURLcode for errors, which is when it
returns a different size than what was passed in to it.

The http2 code only checked the curlcode and thus failed.

lib/vtls/openssl.c

index 844b6e113d9bf92f1a78fe96ac5da22b3ebfe811..2ff425e0d609ab6002d3a4dd10be9d24f0787833 100644 (file)
@@ -2752,6 +2752,7 @@ static ssize_t ossl_send(struct connectdata *conn,
     *curlcode = CURLE_SEND_ERROR;
     return -1;
   }
+  *curlcode = CURLE_OK;
   return (ssize_t)rc; /* number of bytes */
 }