From 33f591239588a41c08dd3df3c2057bcbacea3ab0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=A0t=C4=9Bp=C3=A1n=20Bal=C3=A1=C5=BEik?= Date: Wed, 20 Jan 2021 12:29:22 +0100 Subject: [PATCH] remove workaround in is_authoritative --- lib/layer/iterate.c | 7 ------- 1 file changed, 7 deletions(-) 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; -- 2.47.2