From: Remi Gacogne Date: Mon, 12 May 2025 10:15:24 +0000 (+0200) Subject: dnsdist: Reset the PP payload size when resetting the payload (restart) X-Git-Tag: dnsdist-1.9.10~2^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fa5c62f678e8c0783220c03c84e5f7d84e61dc3;p=thirdparty%2Fpdns.git dnsdist: Reset the PP payload size when resetting the payload (restart) We fixed that for UDP backends in a previous commit, but this was still an issue for TCP-based backends. (cherry picked from commit 00322e987270f17d2dbcd66fbd710ff4d9f4e1f1) --- diff --git a/pdns/dnsdist-lua-bindings-dnsquestion.cc b/pdns/dnsdist-lua-bindings-dnsquestion.cc index 549902e4d2..06e5bb7145 100644 --- a/pdns/dnsdist-lua-bindings-dnsquestion.cc +++ b/pdns/dnsdist-lua-bindings-dnsquestion.cc @@ -565,6 +565,7 @@ private: } dr.asynchronous = true; dr.getMutableData() = *dr.ids.d_packet; + dr.ids.d_proxyProtocolPayloadSize = 0; auto query = dnsdist::getInternalQueryFromDQ(dr, false); return dnsdist::queueQueryResumptionEvent(std::move(query)); });