]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix a missed performance optimization reported by Coverity 17791/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 27 Jul 2026 13:07:18 +0000 (15:07 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 27 Jul 2026 13:07:18 +0000 (15:07 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-udp.cc

index d88e7acd22e9d7a8545303bd7b859ce82feb1d0b..70d3abd1e517b1cfc7b3eda3a13ae5665f13b4c5 100644 (file)
@@ -903,7 +903,7 @@ void responderThread(std::shared_ptr<DownstreamState> dss)
 #ifndef DISABLE_RECVMMSG
 #if defined(HAVE_RECVMMSG) && defined(HAVE_SENDMMSG) && defined(MSG_WAITFORONE)
   if (dnsdist::configuration::getImmutableConfiguration().d_udpVectorSize > 1) {
-    MultipleMessagesUDPResponseFromBackendThread(dss);
+    MultipleMessagesUDPResponseFromBackendThread(std::move(dss));
     return;
   }
 #endif /* defined(HAVE_RECVMMSG) && defined(HAVE_SENDMMSG) && defined(MSG_WAITFORONE) */