]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix handling of ISC_R_TIMEOUT in resume_qmin()
authorMark Andrews <marka@isc.org>
Thu, 15 Aug 2024 13:34:59 +0000 (23:34 +1000)
committerMark Andrews <marka@isc.org>
Fri, 14 Mar 2025 01:01:26 +0000 (01:01 +0000)
If a timeout occurs when sending a QMIN query, QNAME
minimization should be disabled. This now causes a hard
failure in strict mode, or a fallback to non-minimized queries
in relaxed mode.

lib/dns/resolver.c

index caf670b3ba27cc293a9dbe08c37ca19abf2e3978..c1f9579cacecb7521987834b73547e9b17092d99 100644 (file)
@@ -4241,6 +4241,7 @@ resume_qmin(void *arg) {
        case DNS_R_FORMERR:
        case DNS_R_REMOTEFORMERR:
        case ISC_R_FAILURE:
+       case ISC_R_TIMEDOUT:
                if ((fctx->options & DNS_FETCHOPT_QMIN_STRICT) != 0) {
                        /* These results cause a hard fail in strict mode */
                        goto cleanup;