]> granicus.if.org Git - pdns/commitdiff
also set d_requestor without Lua: the ECS logic needs it
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 13 Jun 2017 22:41:27 +0000 (00:41 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Jul 2017 10:06:16 +0000 (12:06 +0200)
(cherry picked from commit cd00142f8ba7a70a59095249b601eb64257e146c)

pdns/pdns_recursor.cc

index 0b7bbd44d45b1b9588ac8433cf3cb3d3387a5645..4890056eac621146d1c16bce011d23d555d6ab62 100644 (file)
@@ -755,9 +755,8 @@ void startDoResolve(void *p)
     bool DNSSECOK=false;
     if(t_pdl) {
       sr.setLuaEngine(*t_pdl);
-      sr.d_requestor=dc->d_remote;
     }
-
+    sr.d_requestor=dc->d_remote; // ECS needs this too
     if(g_dnssecmode != DNSSECMode::Off) {
       sr.d_doDNSSEC=true;