Commit 7043c6ea authored by Witold Krecicki's avatar Witold Krecicki Committed by Witold Krecicki

When resuming from qname-minimization increase fetches-per-zone counters for the 'new' zone

parent 774b0778
Pipeline #13763 passed with stages
in 10 minutes and 53 seconds
5216. [bug] Fetches-per-zone counter wasn't updated correctly
when doing qname minimization. [GL #992]
5215. [bug] Change #5124 was incomplete; named could still
return FORMERR instead of SERVFAIL in some cases.
[GL #990]
......
......@@ -4190,6 +4190,13 @@ resume_qmin(isc_task_t *task, isc_event_t *event) {
fctx_done(fctx, result, __LINE__);
goto cleanup;
}
result = fcount_incr(fctx, false);
if (result != ISC_R_SUCCESS) {
fctx_done(fctx, result, __LINE__);
goto cleanup;
}
dns_name_free(&fctx->qmindcname, fctx->mctx);
dns_name_init(&fctx->qmindcname, NULL);
result = dns_name_dup(dcname, fctx->mctx, &fctx->qmindcname);
......
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