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