When NS is both parent and child, it would respond to the final query
without signature and resolver is supposed to ask for DS to prove the
transition to insecure. Previously, this was only checked for NS queries
(made during referral chasing), so it would work for intermediate
nameservers, but not for final.
* to prove transition to INSECURE. */
const uint16_t qtype = knot_pkt_qtype(pkt);
const knot_dname_t *qname = knot_pkt_qname(pkt);
- if (qtype == KNOT_RRTYPE_NS &&
+ if (qtype != KNOT_RRTYPE_DS &&
knot_dname_in_bailiwick(qname, qry->zone_cut.name) > 0) {
/* Server is authoritative
* for both parent and child,