]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
iterate.c: remove workaround in is_authoritative
authorŠtěpán Balážik <stepan.balazik@nic.cz>
Wed, 20 Jan 2021 11:29:22 +0000 (12:29 +0100)
committerŠtěpán Balážik <stepan.balazik@nic.cz>
Fri, 5 Feb 2021 09:46:15 +0000 (10:46 +0100)
lib/layer/iterate.c

index 09944d02753aa1ef609cebb8b44077e3ecc6cce2..f0dbd87642044b74b40c471d02c689e036621d53 100644 (file)
@@ -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;