251d0b
From bb68864bf05d29df644427ec841bc3db6a336519 Mon Sep 17 00:00:00 2001
251d0b
From: Petr Mensik <pemensik@redhat.com>
251d0b
Date: Tue, 20 Sep 2022 11:22:47 +0200
251d0b
Subject: [PATCH] Fix CVE-2022-38178
251d0b
251d0b
5962.	[security]	Fix memory leak in EdDSA verify processing.
251d0b
			(CVE-2022-38178) [GL #3487]
251d0b
---
251d0b
 lib/dns/openssleddsa_link.c | 2 +-
251d0b
 1 file changed, 1 insertion(+), 1 deletion(-)
251d0b
251d0b
diff --git a/lib/dns/openssleddsa_link.c b/lib/dns/openssleddsa_link.c
251d0b
index 8b115ec..4f3c2a8 100644
251d0b
--- a/lib/dns/openssleddsa_link.c
251d0b
+++ b/lib/dns/openssleddsa_link.c
251d0b
@@ -325,7 +325,7 @@ openssleddsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
251d0b
 		siglen = DNS_SIG_ED448SIZE;
251d0b
 
251d0b
 	if (sig->length != siglen)
251d0b
-		return (DST_R_VERIFYFAILURE);
251d0b
+		DST_RET(DST_R_VERIFYFAILURE);
251d0b
 
251d0b
 	isc_buffer_usedregion(buf, &tbsreg);
251d0b
 
251d0b
-- 
251d0b
2.37.3
251d0b