From: Otto Moerbeek Date: Fri, 14 Feb 2020 10:48:15 +0000 (+0100) Subject: Fix compilation issue on older compilers X-Git-Tag: rec-4.3.0-rc2~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4919a309677ff46067a2b2b003aadc27d91864f8;p=thirdparty%2Fpdns.git Fix compilation issue on older compilers (cherry picked from commit 63464fee3f912b6b6c2d3df10321e17f1781cf6a) --- diff --git a/pdns/filterpo.hh b/pdns/filterpo.hh index aea360658a..2498ba7e49 100644 --- a/pdns/filterpo.hh +++ b/pdns/filterpo.hh @@ -203,20 +203,20 @@ public: } void setPriority(Priority p) { d_priority = p; - for (auto& pol : d_qpolName) { - pol.second.d_priority = p; + for (auto& pair : d_qpolName) { + pair.second.d_priority = p; } - for (auto& pol: d_qpolAddr) { - pol->second.d_priority = p; + for (auto& pair : d_propolName) { + pair.second.d_priority = p; } - for (auto& pol: d_propolName) { - pol.second.d_priority = p; + for (auto pair : d_qpolAddr) { + pair->second.d_priority = p; } - for (auto& pol: d_propolNSAddr) { - pol->second.d_priority = p; + for (auto pair : d_propolNSAddr) { + pair->second.d_priority = p; } - for (auto& pol: d_postpolAddr) { - pol->second.d_priority = p; + for (auto pair : d_postpolAddr) { + pair->second.d_priority = p; } } private: