]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Clear the current proxy protocol values each iteration 10515/head
authorOtto <otto.moerbeek@open-xchange.com>
Mon, 21 Jun 2021 13:14:46 +0000 (15:14 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 21 Jun 2021 13:14:46 +0000 (15:14 +0200)
pdns/pdns_recursor.cc

index dc4b27243fa2227ad2525b1cc7db8321a34e0e27..d64680bd6d6d07b7e08d5259e41f8fdbc9696b60 100644 (file)
@@ -3127,6 +3127,7 @@ static void handleNewUDPQuestion(int fd, FDMultiplexer::funcparam_t& var)
 
   for(size_t queriesCounter = 0; queriesCounter < s_maxUDPQueriesPerRound; queriesCounter++) {
     bool proxyProto = false;
+    proxyProtocolValues.clear();
     data.resize(maxIncomingQuerySize);
     fromaddr.sin6.sin6_family=AF_INET6; // this makes sure fromaddr is big enough
     fillMSGHdr(&msgh, &iov, &cbuf, sizeof(cbuf), &data[0], data.size(), &fromaddr);