]> 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>
Mon, 12 May 2025 10:15:24 +0000 (12:15 +0200)
We fixed that for UDP backends in a previous commit, but this was still
an issue for TCP-based backends.

pdns/dnsdistdist/dnsdist-lua-bindings-dnsquestion.cc

index 676eaeb7753e58f84cb01b063611cf5c11d2623c..4136d9c2d3337725f1b0b15226c95e67ad6c9286 100644 (file)
@@ -654,6 +654,7 @@ void setupLuaBindingsDNSQuestion([[maybe_unused]] LuaContext& luaCtx)
     }
     dnsResponse.asynchronous = true;
     dnsResponse.getMutableData() = *dnsResponse.ids.d_packet;
+    dnsResponse.ids.d_proxyProtocolPayloadSize = 0;
     auto query = dnsdist::getInternalQueryFromDQ(dnsResponse, false);
     return dnsdist::queueQueryResumptionEvent(std::move(query));
   });