]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't SERVFAIL on lame delegations when doing minimization in relaxed mode.
authorWitold Kręcicki <wpk@isc.org>
Fri, 24 May 2019 12:03:16 +0000 (14:03 +0200)
committerEvan Hunt <each@isc.org>
Thu, 30 May 2019 19:38:18 +0000 (12:38 -0700)
qname minimization in relaxed mode should fall back to regular
resolution in case of failure.

lib/dns/resolver.c

index b2bc2516d6f00dec99f9bb95c293d39c2ed51a7d..0c55f741f38bd0508632fe0f2597a1911ce2ce2b 100644 (file)
@@ -4158,7 +4158,7 @@ resume_qmin(isc_task_t *task, isc_event_t *event) {
        }
 
        if (NXDOMAIN_RESULT(result) || result == DNS_R_FORMERR ||
-           result == DNS_R_REMOTEFORMERR)
+           result == DNS_R_REMOTEFORMERR || result == ISC_R_FAILURE)
        {
                if ((fctx->options & DNS_FETCHOPT_QMIN_STRICT) == 0) {
                        fctx->qmin_labels = DNS_MAX_LABELS + 1;