From e2e8eea4903289a10007aff9047dc131851f0ee4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 22 Apr 2016 11:38:01 +0200 Subject: [PATCH] lib/fetch: also call SSL_load_error_strings() once (#167). Close #168 --- lib/fetch/common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/fetch/common.c b/lib/fetch/common.c index 2ae63671..9150ce60 100644 --- a/lib/fetch/common.c +++ b/lib/fetch/common.c @@ -946,6 +946,7 @@ ssl_init(void) fprintf(stderr, "SSL library init failed\n"); exit(-1); } + SSL_load_error_strings(); } #endif @@ -964,8 +965,6 @@ fetch_ssl(conn_t *conn, const struct url *URL, int verbose) (void)pthread_once(&ssl_init_once, ssl_init); - SSL_load_error_strings(); - conn->ssl_meth = SSLv23_client_method(); conn->ssl_ctx = SSL_CTX_new(conn->ssl_meth); SSL_CTX_set_mode(conn->ssl_ctx, SSL_MODE_AUTO_RETRY);