Skip to content
Snippets Groups Projects
Verified Commit 1ef083b2 authored by Marek Vavruša's avatar Marek Vavruša Committed by Vladimír Čunát
Browse files

copy transitive query flags when CNAME chasing

This is an issue for things like disabling minimisation, which only works
for the original query and not for the CNAME target.
parent 45e38b3d
Branches
Tags
1 merge request!551fixes for workarounds
......@@ -708,6 +708,13 @@ static int process_answer(knot_pkt_t *pkt, struct kr_request *req)
return KR_STATE_FAIL;
}
next->flags.AWAIT_CUT = true;
/* Copy transitive flags from original query to CNAME followup. */
next->flags.TRACE = query->flags.TRACE;
next->flags.ALWAYS_CUT = query->flags.ALWAYS_CUT;
next->flags.NO_MINIMIZE = query->flags.NO_MINIMIZE;
next->flags.NO_THROTTLE = query->flags.NO_THROTTLE;
if (query->flags.FORWARD) {
next->forward_flags.CNAME = true;
if (query->parent == NULL) {
......
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