From: Otto Moerbeek Date: Mon, 14 Feb 2022 13:55:10 +0000 (+0100) Subject: Also store the Lua context for the TCP case X-Git-Tag: auth-4.7.0-alpha1~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11300%2Fhead;p=thirdparty%2Fpdns.git Also store the Lua context for the TCP case --- diff --git a/pdns/recursordist/rec-main.hh b/pdns/recursordist/rec-main.hh index 81c0460760..da1b8d82fd 100644 --- a/pdns/recursordist/rec-main.hh +++ b/pdns/recursordist/rec-main.hh @@ -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 luaContext) : + d_mdp(true, query), d_now(now), d_query(query), d_luaContext(luaContext) { } diff --git a/pdns/recursordist/rec-tcp.cc b/pdns/recursordist/rec-tcp.cc index 4e41c08be3..807b3dce1c 100644 --- a/pdns/recursordist/rec-tcp.cc +++ b/pdns/recursordist/rec-tcp.cc @@ -329,7 +329,7 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var) conn->state = TCPConnection::BYTE0; std::unique_ptr dc; try { - dc = std::make_unique(conn->data, g_now); + dc = std::make_unique(conn->data, g_now, t_pdl); } catch (const MOADNSException& mde) { g_stats.clientParseError++;