aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-09-19 11:33:14 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-09-19 11:33:14 +0200
commitde71e68000c8624ea13f90b136f8734dd0fb1bdc (patch)
treee88e0aca5a937490d74031761d98b3a3709adfa5 /lib
parentfb0032a33e3c3705f45ea09a1a55ac0b1d4f0fd6 (diff)
openssl: don’t call CRYTPO_cleanup_all_ex_data
The OpenSSL function CRYTPO_cleanup_all_ex_data() cannot be called multiple times without crashing - and other libs might call it! We basically cannot call it without risking a crash. The function is a no-op since OpenSSL 1.1.0. Not calling this function only risks a small memory leak with OpenSSL < 1.1.0. Bug: https://curl.haxx.se/mail/lib-2016-09/0045.html Reported-by: Todd Short
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/openssl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 44a6bd82b..30a8dabc3 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -748,11 +748,6 @@ void Curl_ossl_cleanup(void)
ENGINE_cleanup();
#endif
-#ifdef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
- /* Free OpenSSL ex_data table */
- CRYPTO_cleanup_all_ex_data();
-#endif
-
/* Free OpenSSL error strings */
ERR_free_strings();