Clear OpenSSL errors on ECDSA_SIG_new failures

This commit is contained in:
Mark Andrews
2023-07-13 14:39:06 +10:00
parent 5e09d959b0
commit eafcd41120

View File

@@ -738,7 +738,7 @@ opensslecdsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
ecdsasig = ECDSA_SIG_new();
if (ecdsasig == NULL) {
DST_RET(ISC_R_NOMEMORY);
DST_RET(dst__openssl_toresult(ISC_R_NOMEMORY));
}
r = BN_bin2bn(cp, siglen / 2, NULL);
cp += siglen / 2;