Skip to content
Commit 773fd0ba authored by Matt Caswell's avatar Matt Caswell
Browse files

Call CONF_modules_free() before ENGINE_cleanup() in auto-deinit



During auto de-init we were calling ENGINE_cleanup(), and then later
CONF_modules_free(). However the latter function can end up calling
engine code, which can lead to a use of the global_engine_lock after it
has already been freed. Therefore we should swap the calling order of
these two functions.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 71627423
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment