1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

ERR_error_string() returns an unsigned long so we should use one of those

for the return code
This commit is contained in:
Daniel Stenberg 2004-05-05 07:01:33 +00:00
parent aae521d086
commit dcf5e52b62

View File

@ -238,7 +238,7 @@ CURLcode Curl_write(struct connectdata *conn,
int err;
char error_buffer[120]; /* OpenSSL documents that this must be at least
120 bytes long. */
int sslerror;
unsigned long sslerror;
int rc = SSL_write(conn->ssl[num].handle, mem, len);
if(rc < 0) {
@ -394,7 +394,7 @@ int Curl_read(struct connectdata *conn, /* connection data */
{
char error_buffer[120]; /* OpenSSL documents that this must be at
least 120 bytes long. */
int sslerror = ERR_get_error();
unsigned long sslerror = ERR_get_error();
failf(conn->data, "SSL read: %s, errno %d",
ERR_error_string(sslerror, error_buffer),
Curl_ourerrno() );