Commit 36a74e13 authored by Marek Vavrusa's avatar Marek Vavrusa

lib/iterate: drop minimisation when getting REFUSED

this is required to avoid REFUSED loops if the origin doesn't handle
minimisation well
parent 0225ea57
......@@ -616,6 +616,7 @@ static int resolve(knot_layer_t *ctx, knot_pkt_t *pkt)
query->fails = 0; /* Reset per-query counter. */
return resolve_error(pkt, req);
} else {
query->flags |= QUERY_NO_MINIMIZE; /* Drop minimisation as a safe-guard. */
return KNOT_STATE_CONSUME;
}
}
......
Markdown is supported
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