From: Otto Date: Mon, 21 Jun 2021 13:14:46 +0000 (+0200) Subject: Clear the current proxy protocol values each iteration X-Git-Tag: rec-4.5.5~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10573%2Fhead;p=thirdparty%2Fpdns.git Clear the current proxy protocol values each iteration (cherry picked from commit b2b8ccea95ddde5cd170afef57ba8eeced3d1d0e) --- 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);