]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
remove workaround in is_authoritative remove-is-authoritative-workaround
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>
Wed, 27 Jan 2021 13:45:40 +0000 (14:45 +0100)
lib/layer/iterate.c

index 89589b041ff1aa42a6dba6c7d8b0f3b9ebbcc0b7..f140d3cca211d4ccf8d3aa59a2caaf06393b9301 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;