diff options
author | daurnimator <quae@daurnimator.com> | 2017-08-31 02:32:53 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-08-31 02:32:53 +1000 |
commit | d36d78f74c537c317528bc68ea734997054c6411 (patch) | |
tree | fc014c649adcf48ccce8bba9aaf61ed998481c98 /src | |
parent | dbb042053c531d7df2d4254f273ffb9dae269f58 (diff) | |
download | luaossl-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
Diffstat (limited to 'src')
-rw-r--r-- | src/openssl.c | 2 |
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) { | |||
1921 | if (done) | 1921 | if (done) |
1922 | goto epilog; | 1922 | goto epilog; |
1923 | 1923 | ||
1924 | #if defined compat_X509_STORE_free | ||
1924 | /* | 1925 | /* |
1925 | * We need to unconditionally install at least one external | 1926 | * We need to unconditionally install at least one external |
1926 | * application data callback. Because these can never be | 1927 | * application data callback. Because these can never be |
@@ -1929,7 +1930,6 @@ static int compat_init(void) { | |||
1929 | if ((error = dl_anchor())) | 1930 | if ((error = dl_anchor())) |
1930 | goto epilog; | 1931 | goto epilog; |
1931 | 1932 | ||
1932 | #if defined compat_X509_STORE_free | ||
1933 | /* | 1933 | /* |
1934 | * Test if X509_STORE_free obeys reference counts by installing an | 1934 | * Test if X509_STORE_free obeys reference counts by installing an |
1935 | * onfree callback. | 1935 | * onfree callback. |