From c8210b04217e9e93a4ff11950c2f1ca24f7de174 Mon Sep 17 00:00:00 2001 From: Otto Date: Mon, 21 Jun 2021 15:14:46 +0200 Subject: [PATCH] Clear the current proxy protocol values each iteration (cherry picked from commit b2b8ccea95ddde5cd170afef57ba8eeced3d1d0e) --- pdns/pdns_recursor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 94b8b497ad..e7b8ab6f3a 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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); -- 2.47.2