blob: bca80ea494aeb5139c0dc7728df0057ffa982ada (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From: =?utf-8?b?VmxhZGltw61yIMSMdW7DoXQ=?= <vladimir.cunat@nic.cz>
Date: Mon, 1 Jan 2024 16:05:46 +0100
Subject: lib/resolve kr_request_set_extended_error(): tweak priorities
Keep the first error in case priorities are equal.
At least with the current KeyTrap topic that should work better,
but blaming a single error is alchemy anyway, at least in some cases.
---
lib/resolve.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/resolve.c b/lib/resolve.c
index aa3d521..9e82e6f 100644
--- a/lib/resolve.c
+++ b/lib/resolve.c
@@ -1684,7 +1684,7 @@ int kr_request_set_extended_error(struct kr_request *request, int info_code, con
return KNOT_EDNS_EDE_NONE;
}
- if (ede_priority(info_code) >= ede_priority(ede->info_code)) {
+ if (ede_priority(info_code) > ede_priority(ede->info_code)) {
ede->info_code = info_code;
ede->extra_text = extra_text;
}
|