]> granicus.if.org Git - curl/commit
openssl: don’t call CRYTPO_cleanup_all_ex_data
authorDaniel Stenberg <daniel@haxx.se>
Mon, 19 Sep 2016 09:33:14 +0000 (11:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Sep 2016 09:33:14 +0000 (11:33 +0200)
commitde71e68000c8624ea13f90b136f8734dd0fb1bdc
treee88e0aca5a937490d74031761d98b3a3709adfa5
parentfb0032a33e3c3705f45ea09a1a55ac0b1d4f0fd6
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
CMakeLists.txt
configure.ac
lib/vtls/openssl.c