]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Clear OpenSSL errors on engine errors
authorMark Andrews <marka@isc.org>
Tue, 11 Jul 2023 07:59:13 +0000 (17:59 +1000)
committerMark Andrews <marka@isc.org>
Fri, 1 Sep 2023 02:01:19 +0000 (12:01 +1000)
lib/dns/openssl_link.c

index 005e7832d32bb366ecf00253065b2ec14a656f41..c361c3083bbc0615404dbd3b151cdc8fe2ad1be7 100644 (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);