Clear OpenSSL errors on engine errors

(cherry picked from commit 2ba62aebce)
This commit is contained in:
Mark Andrews
2023-07-11 17:59:13 +10:00
parent aca6f3e82d
commit 34a0bb146c

View File

@@ -104,6 +104,7 @@ cleanup_rm:
ENGINE_free(e);
}
e = NULL;
ERR_clear_error();
#else
UNUSED(engine);
#endif /* if !defined(OPENSSL_NO_ENGINE) && OPENSSL_API_LEVEL < 30000 */