Skip to content
Snippets Groups Projects
Commit 73650cc1 authored by Štěpán Balážik's avatar Štěpán Balážik
Browse files

selection_iter: relax NSNXAttack mitigation

Previously the mitigation would stop some longer benign resolutions.
We can safely zero the subquery counter when choose a concrete transport
for the query (i.e. NS name with known IP address).
parent 34b735bd
Branches
Tags
1 merge request!1126Rework iterate.c/selection.c error handling
......@@ -277,8 +277,11 @@ void iter_choose_transport(struct kr_query *qry, struct kr_transport **transport
/* We need to propagate this to flags since it's used in
* other parts of the resolver. */
qry->flags.TCP = true;
case KR_TRANSPORT_UDP: /* fall through */
local_state->no_ns_addr_count = 0;
break;
default:
assert(0);
break;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment