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.
This commit is contained in:
Daniel Stenberg 2014-08-01 00:01:02 +02:00
parent 05e81222d4
commit b9f6ca1d32

View 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 */
}