Skip to content
Snippets Groups Projects
Commit 01ec28f4 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

lib/resolve: cached names below cut are treated insecure

parent de70d70e
Branches
Tags
No related merge requests found
......@@ -270,8 +270,10 @@ static int resolve_query(struct kr_request *request, const knot_pkt_t *packet)
/* Deferred zone cut lookup for this query. */
qry->flags |= QUERY_AWAIT_CUT;
/* Want DNSSEC if it's posible to secure this name (e.g. is covered by any TA) */
map_t *negative_anchors = &request->ctx->negative_anchors;
map_t *trust_anchors = &request->ctx->trust_anchors;
if (knot_pkt_has_dnssec(packet) && kr_ta_covers(trust_anchors, qname)) {
if (knot_pkt_has_dnssec(packet) &&
kr_ta_covers(trust_anchors, qname) && !kr_ta_covers(negative_anchors, qname)) {
qry->flags |= QUERY_DNSSEC_WANT;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment