wolfssl: return CURLE_AGAIN for the SSL_ERROR_NONE case

Closes #8431
This commit is contained in:
Daniel Stenberg 2022-02-11 10:41:28 +01:00
parent 327ef30530
commit e1667a61ea
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -923,7 +923,10 @@ static ssize_t wolfssl_recv(struct Curl_easy *data,
switch(err) {
case SSL_ERROR_ZERO_RETURN: /* no more data */
break;
case SSL_ERROR_NONE:
/* FALLTHROUGH */
case SSL_ERROR_WANT_READ:
/* FALLTHROUGH */
case SSL_ERROR_WANT_WRITE:
/* there's data pending, re-invoke SSL_read() */
*curlcode = CURLE_AGAIN;