]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Also store the Lua context for the TCP case 11300/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 14 Feb 2022 13:55:10 +0000 (14:55 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 14 Feb 2022 13:55:10 +0000 (14:55 +0100)
pdns/recursordist/rec-main.hh
pdns/recursordist/rec-tcp.cc

index 81c04607605ea90753759f8e258c4dba577c293d..da1b8d82fd4b023c1ec6a694e3540b9262155fbc 100644 (file)
@@ -48,8 +48,8 @@
 //! used to send information to a newborn mthread
 struct DNSComboWriter
 {
-  DNSComboWriter(const std::string& query, const struct timeval& now) :
-    d_mdp(true, query), d_now(now), d_query(query)
+  DNSComboWriter(const std::string& query, const struct timeval& now, shared_ptr<RecursorLua4> luaContext) :
+    d_mdp(true, query), d_now(now), d_query(query), d_luaContext(luaContext)
   {
   }
 
index 4e41c08be3dcf0bddd4e636ce4b4e9a5423ea701..807b3dce1c8276d1b6e385941f52e82b0188743f 100644 (file)
@@ -329,7 +329,7 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var)
       conn->state = TCPConnection::BYTE0;
       std::unique_ptr<DNSComboWriter> dc;
       try {
-        dc = std::make_unique<DNSComboWriter>(conn->data, g_now);
+        dc = std::make_unique<DNSComboWriter>(conn->data, g_now, t_pdl);
       }
       catch (const MOADNSException& mde) {
         g_stats.clientParseError++;