]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/resolve: fix zonecut fetching for explicit DS queries
authorGrigorii Demidov <grigorii.demidov@nic.cz>
Thu, 2 Feb 2017 13:36:35 +0000 (14:36 +0100)
committerGrigorii Demidov <grigorii.demidov@nic.cz>
Thu, 2 Feb 2017 13:36:35 +0000 (14:36 +0100)
lib/resolve.c

index 8b391d757410e464038f3d8a1a00d6567889acbb..5666758c76478c9970815991725b8af212633d27 100644 (file)
@@ -917,6 +917,9 @@ static int zone_cut_check(struct kr_request *request, struct kr_query *qry, knot
                if (parent[0] != '\0' && knot_dname_in(parent, qry->sname)) {
                        requested_name = knot_wire_next_label(parent, NULL);
                }
+       } else if ((qry->stype == KNOT_RRTYPE_DS) && (qry->sname[0] != '\0')) {
+               /* If this is explicit DS query, start from encloser too. */
+               requested_name = knot_wire_next_label(requested_name, NULL);
        }
 
        int state = KR_STATE_FAIL;