Commit 306a24b7 authored by Daniel Salzman's avatar Daniel Salzman

nameserver: apply rrl after global QPLAN_END processing

parent 222d9264
......@@ -562,11 +562,6 @@ finish:
}
/* In case of NS_PROC_FAIL, RCODE is set in the error-processing function. */
/* Rate limits (if applicable). */
if (qdata->param->proc_flags & NS_QUERY_LIMIT_RATE) {
next_state = ratelimit_apply(next_state, pkt, ctx);
}
/* After query processing code. */
if (plan) {
WALK_LIST(step, plan->stage[QPLAN_END]) {
......@@ -574,6 +569,11 @@ finish:
}
}
/* Rate limits (if applicable). */
if (qdata->param->proc_flags & NS_QUERY_LIMIT_RATE) {
next_state = ratelimit_apply(next_state, pkt, ctx);
}
rcu_read_unlock();
return next_state;
......
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