2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Clear OpenSSL errors on EVP_PKEY_get_bn_param failures

This commit is contained in:
Mark Andrews
2023-07-19 17:25:17 +10:00
parent 8529be30bb
commit d8a9adc821

View File

@@ -97,7 +97,10 @@ opensslrsa_components_get(const dst_key_t *key, rsa_components_t *c,
(void)EVP_PKEY_get_bn_param(priv,
OSSL_PKEY_PARAM_RSA_COEFFICIENT1,
(BIGNUM **)&c->iqmp);
ERR_clear_error();
return (ISC_R_SUCCESS);
} else {
ERR_clear_error();
}
#endif
#if OPENSSL_VERSION_NUMBER < 0x30000000L || OPENSSL_API_LEVEL < 30000