]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
wolfssl: return CURLE_AGAIN for the SSL_ERROR_NONE case
authorDaniel Stenberg <daniel@haxx.se>
Fri, 11 Feb 2022 09:41:28 +0000 (10:41 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 11 Feb 2022 11:36:52 +0000 (12:36 +0100)
Closes #8431

lib/vtls/wolfssl.c

index d44a406b53cf3f7861371eed8447873bd2e064e0..1dbf5ecbb5fb30e0f01fd84100faf5162d251e12 100644 (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;