Clear OpenSSL errors on engine errors

This commit is contained in:
Mark Andrews
2023-07-11 17:59:13 +10:00
parent 4ea926934a
commit 2ba62aebce

View File

@@ -110,6 +110,7 @@ cleanup_rm:
if (global_engine != NULL) {
ENGINE_free(global_engine);
}
ERR_clear_error();
global_engine = NULL;
#endif /* if !defined(OPENSSL_NO_ENGINE) && OPENSSL_API_LEVEL < 30000 */
return (DST_R_NOENGINE);