From: Daniel Stenberg Date: Thu, 31 Jul 2014 22:01:02 +0000 (+0200) Subject: openssl: make ossl_send return CURLE_OK better X-Git-Tag: curl-7_38_0~152 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9f6ca1d3202ce36deea416d1f17bb6537f03600;p=thirdparty%2Fcurl.git openssl: make ossl_send return CURLE_OK better 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. --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 844b6e113d..2ff425e0d6 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -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 */ }