diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-02-10 12:29:34 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-02-10 12:29:34 -0800 |
commit | 61fc9044c715f091587d35d29d041c3c733d847c (patch) | |
tree | b549247bd7b4c907441b71555fbf26e68cc78e47 /lib | |
parent | 311bd4c7b10534830c9b9ab062c10d06f57ecb68 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index 121ba2bf6..ec6c02a50 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -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; } |