summaryrefslogtreecommitdiffstats
path: root/debian/patches/0006-validator-compatibility-with-older-libknot-versions.patch
blob: 0bb8fb1b9dff6489e1a777b4feafc41cccbf3247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?b?VmxhZGltw61yIMSMdW7DoXQ=?= <vladimir.cunat@nic.cz>
Date: Mon, 12 Feb 2024 11:30:50 +0100
Subject: validator: compatibility with older libknot versions

The value is in IANA registry, so it's very constant anyway.
---
 lib/layer/validate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/layer/validate.c b/lib/layer/validate.c
index 95a7624..6c0d7ad 100644
--- a/lib/layer/validate.c
+++ b/lib/layer/validate.c
@@ -1130,7 +1130,7 @@ static int validate(kr_layer_t *ctx, knot_pkt_t *pkt)
 			count += (knot_pkt_rr(sec, i)->type == KNOT_RRTYPE_NSEC3);
 		if (count > 8) {
 			VERBOSE_MSG(qry, "<= too many NSEC3 records in AUTHORITY (%d)\n", count);
-			kr_request_set_extended_error(req, KNOT_EDNS_EDE_NSEC3_ITERS,
+			kr_request_set_extended_error(req, 27/*KNOT_EDNS_EDE_NSEC3_ITERS*/,
 				/* It's not about iteration values per se, but close enough. */
 				"DYRH: too many NSEC3 records");
 			qry->flags.DNSSEC_BOGUS = true;