]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Reset the PP payload size when resetting the payload (restart)
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 12 May 2025 10:15:24 +0000 (12:15 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Sun, 18 May 2025 09:56:34 +0000 (11:56 +0200)
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)

pdns/dnsdist-lua-bindings-dnsquestion.cc

index 549902e4d22f93f0ccb9db10e7d6865d302f5dd1..06e5bb7145c17f9e2781cf074114e079f37d8f04 100644 (file)
@@ -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));
   });