File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ PHP NEWS
11
11
- MySQLnd:
12
12
. Fixed potential heap corruption due to alignment mismatch. (cmb)
13
13
14
+ - OpenSSL:
15
+ . Fixed missing clean up of OpenSSL engine list - attempt to fix GH-8620.
16
+ (Jakub Zelenka)
17
+
14
18
- PDO_ODBC:
15
19
. Fixed bug GH-9372 (HY010 when binding overlong parameter). (cmb)
16
20
Original file line number Diff line number Diff line change 61
61
#include <openssl/param_build.h>
62
62
#endif
63
63
64
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L && !defined(OPENSSL_NO_ENGINE )
65
+ #include <openssl/engine.h>
66
+ #endif
67
+
64
68
/* Common */
65
69
#include <time.h>
66
70
@@ -1312,6 +1316,11 @@ PHP_MSHUTDOWN_FUNCTION(openssl)
1312
1316
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER )
1313
1317
EVP_cleanup ();
1314
1318
1319
+ #ifndef OPENSSL_NO_ENGINE
1320
+ /* Free engine list initialized by OPENSSL_config */
1321
+ ENGINE_cleanup ();
1322
+ #endif
1323
+
1315
1324
/* prevent accessing locking callback from unloaded extension */
1316
1325
CRYPTO_set_locking_callback (NULL );
1317
1326
/* free allocated error strings */
You can’t perform that action at this time.
0 commit comments