From: Otto Moerbeek Date: Fri, 14 Feb 2020 10:48:15 +0000 (+0100) Subject: Fix compilation issue on older compilers X-Git-Tag: auth-4.3.0-beta2~11^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63464fee3f912b6b6c2d3df10321e17f1781cf6a;p=thirdparty%2Fpdns.git Fix compilation issue on older compilers --- 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: