summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2024-01-01 16:05:46 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2024-02-13 09:47:33 +0100
commitb044babbee358dc305d770a1dab3a877c49468a7 (patch)
tree436dd7a5918f909ca93b7a00ba1d972c17c1c1a8
parentlib/dnssec kr_rrset_validate_with_key(): deduplicate cleanup (diff)
downloadknot-resolver-b044babbee358dc305d770a1dab3a877c49468a7.tar.xz
knot-resolver-b044babbee358dc305d770a1dab3a877c49468a7.zip
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.
-rw-r--r--lib/resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolve.c b/lib/resolve.c
index e9436927..7ee1d1aa 100644
--- a/lib/resolve.c
+++ b/lib/resolve.c
@@ -1707,7 +1707,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;
}