From: Otto Date: Mon, 21 Jun 2021 13:14:46 +0000 (+0200) Subject: Clear the current proxy protocol values each iteration X-Git-Tag: dnsdist-1.7.0-alpha1~139^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10515%2Fhead;p=thirdparty%2Fpdns.git Clear the current proxy protocol values each iteration --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index dc4b27243f..d64680bd6d 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -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);