summaryrefslogtreecommitdiff
path: root/lib/ssluse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssluse.c')
-rw-r--r--lib/ssluse.c2
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;
}