Commit 2d0a3320 authored by Witold Krecicki's avatar Witold Krecicki
Browse files

Cleanup fctx->finds before sending 'final' query after qname minimization.

At the beginning of qname minimization we get fctx->finds filled with what's
in the cache at this point, in worst case root servers. After doing full
run querying for NSes at different levels we need to clean it and refill
it with proper values from cache.
parent d88efa7e
Pipeline #6130 passed with stages
in 8 minutes and 51 seconds
5075. [bug] Refresh nameservers from cache when sending final
query in qname minimization. [GL #16]
5074. [cleanup] Remove vector socket functions - isc_socket_recvv(),
isc_socket_sendtov(), isc_socket_sendtov2(),
isc_socket_sendv() - in order to simplify socket code.
......
......@@ -4143,6 +4143,15 @@ resume_qmin(isc_task_t *task, isc_event_t *event) {
fctx->ns_ttl = fctx->nameservers.ttl;
fctx->ns_ttl_ok = true;
fctx_minimize_qname(fctx);
if (!fctx->minimized) {
/*
* We have finished minimizing, but fctx->finds was filled at
* the beginning of the run - now we need to clear it before
* sending the final query to use proper nameservers.
*/
fctx_cancelqueries(fctx, false, false);
fctx_cleanupall(fctx);
}
fctx_try(fctx, true, false);
cleanup:
......
Markdown is supported
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