Skip to content
Snippets Groups Projects
Commit c6b0883e authored by Ondřej Surý's avatar Ondřej Surý Committed by Petr Špaček
Browse files

Disable storing GLUE records into the cache in the QUERY_PERMISSIVE mode

parent c05ce2ae
Branches
Tags
2 merge requests!254Knot Resolver 1.2.5,!208Disable storing GLUE records into the cache in the QUERY_PERMISSIVE mode
Pipeline #1839 passed with stages
in 1 minute and 6 seconds
......@@ -310,8 +310,7 @@ static int stash_authority(struct kr_request *req, knot_pkt_t *pkt, map_t *stash
if (rr->type == KNOT_RRTYPE_NS) {
for (size_t j = 0; j < rr->rrs.rr_count; ++j) {
const knot_dname_t *ns_name = knot_ns_name(&rr->rrs, j);
if (qry->flags & QUERY_PERMISSIVE ||
knot_dname_in(qry->zone_cut.name, ns_name)) {
if (knot_dname_in(qry->zone_cut.name, ns_name)) {
stash_glue(stash, pkt, ns_name, pool);
}
}
......
deckard @ 23123278
Subproject commit 61af39b9665cb14ab04ebf51202be7756d646527
Subproject commit 23123278300caac55c0cccfeccc96267246b0993
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