Skip to content

Commit

Permalink
lib/resolve kr_request_set_extended_error(): tweak priorities
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vcunat committed Feb 13, 2024
1 parent f9ba52e commit b044bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolve.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b044bab

Please sign in to comment.