mirror of
https://github.com/curl/curl.git
synced 2026-07-16 06:47:16 +03:00
openssl: set io_need always
When OpenSSL reports SSL_ERROR_WANT_READ, set the io_need explicitly. It should have already been set by the BIO, but be safe. Reported in Joshua's sarif data Closes #18733
This commit is contained in:
parent
221b7dda38
commit
442943fb8e
1 changed files with 1 additions and 0 deletions
|
|
@ -5369,6 +5369,7 @@ static CURLcode ossl_recv(struct Curl_cfilter *cf,
|
|||
connclose(conn, "TLS close_notify");
|
||||
break;
|
||||
case SSL_ERROR_WANT_READ:
|
||||
connssl->io_need = CURL_SSL_IO_NEED_RECV;
|
||||
result = CURLE_AGAIN;
|
||||
goto out;
|
||||
case SSL_ERROR_WANT_WRITE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue