]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
remove out-of-bailiwick update cut workaround remove-out-of-bailiwick-workaround
authorŠtěpán Balážik <stepan.balazik@nic.cz>
Wed, 20 Jan 2021 11:34:56 +0000 (12:34 +0100)
committerŠtěpán Balážik <stepan.balazik@nic.cz>
Thu, 4 Feb 2021 15:10:24 +0000 (16:10 +0100)
lib/layer/iterate.c

index 94342cfb510eccdf09d31ef3b76c09c33ea34512..76623c0e0353d31a528c3d067434bc44837a6d08 100644 (file)
@@ -261,16 +261,7 @@ static int update_cut(knot_pkt_t *pkt, const knot_rrset_t *rr,
        if (!ok) {
                VERBOSE_MSG("<= authority: ns outside bailiwick\n");
                qry->server_selection.error(qry, req->upstream.transport, KR_SELECTION_LAME_DELEGATION);
-#ifdef STRICT_MODE
                return KR_STATE_FAIL;
-#else
-               /* Workaround: ignore out-of-bailiwick NSs for authoritative answers,
-                * but fail for referrals. This is important to detect lame answers. */
-               if (knot_pkt_section(pkt, KNOT_ANSWER)->count == 0) {
-                       state = KR_STATE_FAIL;
-               }
-               return state;
-#endif
        }
 
        /* Update zone cut name */