]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update pdns/dnsdistdist/dnsdist-udp.cc 16363/head
authorPieter Lexis <pieter@plexis.eu>
Mon, 1 Jun 2026 09:28:12 +0000 (11:28 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 1 Jun 2026 10:52:27 +0000 (12:52 +0200)
Co-authored-by: Remi Gacogne <github@coredump.fr>
Signed-off-by: Pieter Lexis <pieter@plexis.eu>
pdns/dnsdistdist/dnsdist-udp.cc

index c795796051a46b64e5ca78d7ca6384fc36adda18..47e5a84d2b97e75b480f4096b726137f16664ef8 100644 (file)
@@ -515,7 +515,7 @@ void MultipleMessagesUDPClientThread(ClientState* clientState)
     recvData[idx].remote.sin4.sin_family = clientState->local.sin4.sin_family;
     recvData[idx].packet.resize(initialBufferSize);
     // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
-    fillMSGHdr(&msgVec[idx].msg_hdr, &recvData[idx].iov, &recvData[idx].cbuf, sizeof(recvData[idx].cbuf), reinterpret_cast<char*>(recvData[idx].packet.data()), maxIncomingPacketSize, &recvData[idx].remote);
+    fillMSGHdr(&msgVec[idx].msg_hdr, &recvData[idx].iov, &recvData[idx].cbuf, sizeof(decltype(recvData[idx].cbuf)), reinterpret_cast<char*>(recvData[idx].packet.data()), maxIncomingPacketSize, &recvData[idx].remote);
   }
 
   int msgsGot = static_cast<int>(vectSize);