From: Štěpán Balážik Date: Wed, 20 Jan 2021 11:29:22 +0000 (+0100) Subject: iterate.c: remove workaround in is_authoritative X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acf3b7216761ba3868f48b78c68e4b6efdda3909;p=thirdparty%2Fknot-resolver.git iterate.c: remove workaround in is_authoritative --- diff --git a/lib/layer/iterate.c b/lib/layer/iterate.c index 09944d027..f0dbd8764 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;