]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
iterate: fix minimisation downgrade when encountering authoritative referrals
authorMarek Vavruša <mvavrusa@cloudflare.com>
Thu, 12 Apr 2018 17:35:57 +0000 (10:35 -0700)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 7 Sep 2018 17:45:21 +0000 (10:45 -0700)
commite51d7bf4a02e174e80f9d8bfbba22c7019543e5b
treef77998146aee7931f9da1ff3b5a774d9b5112317
parenta6b6a917736faabea1a0d8ea2277f00d8be78ce8
iterate: fix minimisation downgrade when encountering authoritative referrals

This fixes turning off minimisation when there's an authoritative referral
answer on the resolution path. This happens when there's a nameserver,
which is authoritative for both parent and child side of the delegation,
so it answers from the child side with AA=1. Such answer will be mistakenly
processed as authoritative, and QNAME minimisation will be turned off
(assuming this is the final zone cut).
lib/layer/iterate.c
lib/utils.c