aboutsummaryrefslogtreecommitdiffstats
path: root/apps/apps.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-03-28 17:23:48 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-03-28 17:23:48 +0000
commit246e09319c1d2a8140ffe1e5aeb1be26015696f0 (patch)
tree4cf7e9633d8849983bd6a7803fb49c7f64f01a1d /apps/apps.h
parentf7a3296d8c8746b9901e95674425f300a6dfd1d4 (diff)
downloadopenssl-246e09319c1d2a8140ffe1e5aeb1be26015696f0.tar.gz
Fix bug where freed OIDs could be accessed in EVP_cleanup() by
defering freeing in OBJ_cleanup().
Diffstat (limited to 'apps/apps.h')
-rw-r--r--apps/apps.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/apps.h b/apps/apps.h
index f7950d7a97..7a20d066c9 100644
--- a/apps/apps.h
+++ b/apps/apps.h
@@ -177,7 +177,7 @@ extern BIO *bio_err;
ENGINE_load_builtin_engines(); setup_ui_method(); } while(0)
# define apps_shutdown() \
do { CONF_modules_unload(1); destroy_ui_method(); \
- EVP_cleanup(); ENGINE_cleanup(); \
+ OBJ_cleanup(); EVP_cleanup(); ENGINE_cleanup(); \
CRYPTO_cleanup_all_ex_data(); ERR_remove_state(0); \
ERR_free_strings(); } while(0)
# else
@@ -187,7 +187,7 @@ extern BIO *bio_err;
setup_ui_method(); } while(0)
# define apps_shutdown() \
do { CONF_modules_unload(1); destroy_ui_method(); \
- EVP_cleanup(); \
+ OBJ_cleanup(); EVP_cleanup(); \
CRYPTO_cleanup_all_ex_data(); ERR_remove_state(0); \
ERR_free_strings(); } while(0)
# endif