]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
layer/validate: excluding authority NS records from validation
authorKarel Slany <karel.slany@nic.cz>
Thu, 23 Jul 2015 11:27:02 +0000 (13:27 +0200)
committerKarel Slany <karel.slany@nic.cz>
Thu, 23 Jul 2015 11:27:02 +0000 (13:27 +0200)
lib/layer/validate.c

index bb480259223bebf65e3f290411780cf884151d4f..e17d228691603976162926a98341708b83b781ba 100644 (file)
@@ -510,6 +510,9 @@ static int validate_section(struct kr_query *qry, knot_pkt_t *answer,
                if (rr->type == KNOT_RRTYPE_RRSIG) {
                        continue;
                }
+               if ((rr->type == KNOT_RRTYPE_NS) && (section_id == KNOT_AUTHORITY)) {
+                       continue;
+               }
                ret = rrtypes_add(&stored, rr);
                if (ret != 0) {
                        goto fail;