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 */