From 34a0bb146cc20d92ed9c832929c579c87ecb37be Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 11 Jul 2023 17:59:13 +1000 Subject: [PATCH] Clear OpenSSL errors on engine errors (cherry picked from commit 2ba62aebceadd299910927c3caa923f8644c4f9f) --- lib/dns/openssl_link.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/openssl_link.c b/lib/dns/openssl_link.c index c08070717a..addf16ad98 100644 --- a/lib/dns/openssl_link.c +++ b/lib/dns/openssl_link.c @@ -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 */