aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-08-31 02:32:53 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-08-31 02:32:53 +1000
commitd36d78f74c537c317528bc68ea734997054c6411 (patch)
treefc014c649adcf48ccce8bba9aaf61ed998481c98
parentdbb042053c531d7df2d4254f273ffb9dae269f58 (diff)
downloadluaossl-d36d78f74c537c317528bc68ea734997054c6411.tar.gz
luaossl-d36d78f74c537c317528bc68ea734997054c6411.tar.bz2
luaossl-d36d78f74c537c317528bc68ea734997054c6411.zip
In compat_init we only need to anchor if we use CRYPTO_get_ex_new_index
-rw-r--r--src/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 1ef10e1..cea38a5 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -1921,6 +1921,7 @@ static int compat_init(void) {
if (done)
goto epilog;
+#if defined compat_X509_STORE_free
/*
* We need to unconditionally install at least one external
* application data callback. Because these can never be
@@ -1929,7 +1930,6 @@ static int compat_init(void) {
if ((error = dl_anchor()))
goto epilog;
-#if defined compat_X509_STORE_free
/*
* Test if X509_STORE_free obeys reference counts by installing an
* onfree callback.