mirror of
https://github.com/curl/curl.git
synced 2026-07-28 08:03:05 +03:00
Call ERR_peek_error instead of ERR_peek_last_error
The latter isn't available in older OpenSSL versions, and is less useful since it returns the most recent error instead of the first one encountered.
This commit is contained in:
parent
311bd4c7b1
commit
61fc9044c7
1 changed files with 1 additions and 1 deletions
|
|
@ -1464,7 +1464,7 @@ ossl_connect_step1(struct connectdata *conn,
|
|||
|
||||
if(!connssl->ctx) {
|
||||
failf(data, "SSL: couldn't create a context: %s",
|
||||
ERR_error_string(ERR_peek_last_error(), NULL));
|
||||
ERR_error_string(ERR_peek_error(), NULL));
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue