Clear OpenSSL errors on ECDSA_SIG_new failures

(cherry picked from commit eafcd41120)
This commit is contained in:
Mark Andrews
2023-07-13 14:39:06 +10:00
parent 47a741f3b1
commit 290896921d

View File

@@ -357,7 +357,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;