]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pdns_recursor.cc: Move comment to the right place
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 22 Jul 2016 18:49:39 +0000 (20:49 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 25 Aug 2016 08:44:33 +0000 (10:44 +0200)
pdns/pdns_recursor.cc

index a6af98d7fe783a25759d5a2362a2eb9c4f3ac455..4649ca5d10699c2731d1883259ee248921156634 100644 (file)
@@ -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);