af07b8
From 132ef295b8407f91e6922f4dfc4f30f1790b61c5 Mon Sep 17 00:00:00 2001
af07b8
From: Petr Mensik <pemensik@redhat.com>
af07b8
Date: Tue, 20 Sep 2022 11:22:47 +0200
af07b8
Subject: [PATCH 4/4] Fix CVE-2022-38178
af07b8
af07b8
5962.	[security]	Fix memory leak in EdDSA verify processing.
af07b8
			(CVE-2022-38178) [GL #3487]
af07b8
---
af07b8
 lib/dns/openssleddsa_link.c | 4 ++--
af07b8
 1 file changed, 2 insertions(+), 2 deletions(-)
af07b8
af07b8
diff --git a/lib/dns/openssleddsa_link.c b/lib/dns/openssleddsa_link.c
af07b8
index 6a6a74d..3157011 100644
af07b8
--- a/lib/dns/openssleddsa_link.c
af07b8
+++ b/lib/dns/openssleddsa_link.c
af07b8
@@ -234,11 +234,11 @@ openssleddsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
af07b8
 	}
af07b8
 #endif /* if HAVE_OPENSSL_ED448 */
af07b8
 	if (siglen == 0) {
af07b8
-		return (ISC_R_NOTIMPLEMENTED);
af07b8
+		DST_RET(ISC_R_NOTIMPLEMENTED);
af07b8
 	}
af07b8
 
af07b8
 	if (sig->length != siglen) {
af07b8
-		return (DST_R_VERIFYFAILURE);
af07b8
+		DST_RET(DST_R_VERIFYFAILURE);
af07b8
 	}
af07b8
 
af07b8
 	isc_buffer_usedregion(buf, &tbsreg);
af07b8
-- 
af07b8
2.37.3
af07b8