]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/validate: fixed DS proof check in some cases
authorMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 19 Oct 2015 15:07:29 +0000 (17:07 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Mon, 19 Oct 2015 15:07:29 +0000 (17:07 +0200)
when the DS NODATA was proved from a different authority

lib/layer/validate.c

index 3b39f04c0009926dc65812fd2dc55f43e36d6a36..1455e8d5dd2b3fd81fb8f1efbbffd1a3d80e6342 100644 (file)
@@ -250,10 +250,10 @@ static int update_delegation(struct kr_request *req, struct kr_query *qry, knot_
        if (!new_ds) {
                if (has_nsec3) {
                        ret = kr_nsec3_no_data_response_check(answer, section,
-                             knot_pkt_qname(answer), KNOT_RRTYPE_DS);
+                             qry->zone_cut.name, KNOT_RRTYPE_DS);
                } else {
                        ret = kr_nsec_no_data_response_check(answer, section,
-                             knot_pkt_qname(answer), KNOT_RRTYPE_DS);
+                             qry->zone_cut.name, KNOT_RRTYPE_DS);
                }
                if (ret != 0) {
                        DEBUG_MSG(qry, "<= bogus proof of DS non-existence\n");