From: Mark Andrews Date: Wed, 19 Jul 2023 07:24:34 +0000 (+1000) Subject: Clear OpenSSL errors on context creation failures X-Git-Tag: v9.19.17~17^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96db614d69b72cfb0951b5a4f14d08860274decb;p=thirdparty%2Fbind9.git Clear OpenSSL errors on context creation failures --- diff --git a/lib/dns/openssleddsa_link.c b/lib/dns/openssleddsa_link.c index 7e976a77561..a807638387b 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) {