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:
parent
05e81222d4
commit
b9f6ca1d32
@ -2752,6 +2752,7 @@ static ssize_t ossl_send(struct connectdata *conn,
|
|||||||
*curlcode = CURLE_SEND_ERROR;
|
*curlcode = CURLE_SEND_ERROR;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
*curlcode = CURLE_OK;
|
||||||
return (ssize_t)rc; /* number of bytes */
|
return (ssize_t)rc; /* number of bytes */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user