From 54be222b58f7956b1de6ea4a24ff9c31b31e647d Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 22 Jul 2016 20:49:39 +0200 Subject: [PATCH] pdns_recursor.cc: Move comment to the right place --- pdns/pdns_recursor.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index a6af98d7fe..4649ca5d10 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -739,9 +739,6 @@ void startDoResolve(void *p) if(!dc->d_mdp.d_header.rd) sr.setCacheOnly(); - - // if there is a RecursorLua active, and it 'took' the query in preResolve, we don't launch beginResolve - dfepol = luaconfsLocal->dfe.getQueryPolicy(dc->d_mdp.d_qname, dc->d_remote); switch(dfepol.d_kind) { @@ -785,6 +782,7 @@ void startDoResolve(void *p) break; } + // if there is a RecursorLua active, and it 'took' the query in preResolve, we don't launch beginResolve if(!t_pdl->get() || !(*t_pdl)->preresolve(dc->d_remote, dc->d_local, dc->d_mdp.d_qname, QType(dc->d_mdp.d_qtype), dc->d_tcp, ret, dc->d_ednsOpts.empty() ? 0 : &dc->d_ednsOpts, dc->d_tag, &appliedPolicy, &dc->d_policyTags, res, &variableAnswer)) { try { res = sr.beginResolve(dc->d_mdp.d_qname, QType(dc->d_mdp.d_qtype), dc->d_mdp.d_qclass, ret); -- 2.47.2