Clear OpenSSL errors on ECDSA_SIG_new failures

(cherry picked from commit eafcd41120)
This commit is contained in:
Mark Andrews
2023-09-01 13:13:06 +10:00
parent 47a741f3b1
commit 290896921d
+1 -1
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;