]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Clear the current proxy protocol values each iteration 10573/head
authorOtto <otto.moerbeek@open-xchange.com>
Mon, 21 Jun 2021 13:14:46 +0000 (15:14 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 7 Jul 2021 07:39:11 +0000 (09:39 +0200)
(cherry picked from commit b2b8ccea95ddde5cd170afef57ba8eeced3d1d0e)

pdns/pdns_recursor.cc

index 94b8b497ad3c74dd171bb786cdda76a89f21057a..e7b8ab6f3a77cee40c153cfd8ddfbcadb2df63fb 100644 (file)
@@ -3072,6 +3072,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);