From: Mark Andrews Date: Tue, 11 Jul 2023 07:59:13 +0000 (+1000) Subject: Clear OpenSSL errors on engine errors X-Git-Tag: v9.19.17~17^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ba62aebceadd299910927c3caa923f8644c4f9f;p=thirdparty%2Fbind9.git Clear OpenSSL errors on engine errors --- diff --git a/lib/dns/openssl_link.c b/lib/dns/openssl_link.c index 005e7832d32..c361c3083bb 100644 --- a/lib/dns/openssl_link.c +++ b/lib/dns/openssl_link.c @@ -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);