mirror of
https://github.com/curl/curl.git
synced 2026-06-10 06:14:15 +03:00
Clarence Gardner pointed out the not-taken-care-of return codes from SSL_read
This commit is contained in:
parent
04da96e044
commit
547e91dbf0
1 changed files with 3 additions and 0 deletions
|
|
@ -347,6 +347,9 @@ int Curl_read(struct connectdata *conn,
|
|||
case SSL_ERROR_WANT_WRITE:
|
||||
/* if there's data pending, then we re-invoke SSL_read() */
|
||||
break;
|
||||
default:
|
||||
failf(conn->data, "SSL read error: %d", err);
|
||||
return CURLE_READ_ERROR;
|
||||
}
|
||||
} while(loop);
|
||||
if(loop && SSL_pending(conn->ssl.handle))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue