]> granicus.if.org Git - pdns/commitdiff
rec: Set the existing policy tags in `dq` for `{pre,post}resolve`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 23 Jun 2016 08:23:03 +0000 (10:23 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 23 Jun 2016 08:23:03 +0000 (10:23 +0200)
pdns/lua-recursor4.cc

index 0f1be6f806511784e5939efeeeb3af1e62912b8b..84ad7d0e7d1fd0f82f7371e3610b24cdb9c90ff8 100644 (file)
@@ -512,6 +512,9 @@ bool RecursorLua4::genhook(luacall_t& func, const ComboAddress& remote,const Com
   dq->tag = tag;
   dq->ednsOptions = ednsOpts;
   dq->isTcp = isTcp;
+  if (policyTags) {
+    dq->policyTags = *policyTags;
+  }
   bool handled=func(dq);
   if(variable) *variable |= dq->variable; // could still be set to indicate this *name* is variable, even if not 'handled'