From: Štěpán Balážik Date: Wed, 20 Jan 2021 11:29:22 +0000 (+0100) Subject: remove workaround in is_authoritative X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fremove-is-authoritative-workaround;p=thirdparty%2Fknot-resolver.git remove workaround in is_authoritative --- diff --git a/lib/layer/iterate.c b/lib/layer/iterate.c index 89589b041..f140d3cca 100644 --- a/lib/layer/iterate.c +++ b/lib/layer/iterate.c @@ -97,13 +97,6 @@ static bool is_authoritative(const knot_pkt_t *answer, struct kr_query *query) } } -#ifndef STRICT_MODE - /* Last resort to work around broken auths, if the zone cut is at the QNAME. */ - if (knot_dname_is_equal(query->zone_cut.name, knot_pkt_qname(answer))) { - return true; - } -#endif - /* Some authoritative servers are hopelessly broken, allow lame answers in permissive mode. */ if (query->flags.PERMISSIVE) { return true;