mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Clarence Gardner pointed out the not-taken-care-of return codes from SSL_read
This commit is contained in:
parent
04da96e044
commit
547e91dbf0
@ -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…
Reference in New Issue
Block a user