From 96db614d69b72cfb0951b5a4f14d08860274decb Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 19 Jul 2023 17:24:34 +1000 Subject: [PATCH] Clear OpenSSL errors on context creation failures --- lib/dns/openssleddsa_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/openssleddsa_link.c b/lib/dns/openssleddsa_link.c index 7e976a7756..a807638387 100644 --- a/lib/dns/openssleddsa_link.c +++ b/lib/dns/openssleddsa_link.c @@ -231,7 +231,7 @@ openssleddsa_verify(dst_context_t *dctx, const isc_region_t *sig) { REQUIRE(alginfo != NULL); if (ctx == NULL) { - return (ISC_R_NOMEMORY); + return (dst__openssl_toresult(ISC_R_NOMEMORY)); } if (sig->length != alginfo->sig_size) {