mirror of
https://github.com/curl/curl.git
synced 2026-08-26 10:53:36 +03:00
- Improved Curl_read() to not ignore the error returned from Curl_ssl_recv().
This commit is contained in:
parent
6728334edb
commit
19ca0c0fbe
3 changed files with 12 additions and 7 deletions
|
|
@ -538,9 +538,11 @@ int Curl_read(struct connectdata *conn, /* connection data */
|
|||
if(conn->ssl[num].state == ssl_connection_complete) {
|
||||
nread = Curl_ssl_recv(conn, num, buffertofill, bytesfromsocket);
|
||||
|
||||
if(nread == -1) {
|
||||
if(nread == -1)
|
||||
return -1; /* -1 from Curl_ssl_recv() means EWOULDBLOCK */
|
||||
}
|
||||
else if(nread == -2)
|
||||
/* -2 from Curl_ssl_recv() means a true error, not EWOULDBLOCK */
|
||||
return CURLE_RECV_ERROR;
|
||||
}
|
||||
else if(Curl_ssh_enabled(conn, (PROT_SCP|PROT_SFTP))) {
|
||||
if(conn->protocol & PROT_SCP)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue