Blame SOURCES/bind-9.16-CVE-2022-38178.patch

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