From: bert hubert Date: Sun, 25 Oct 2015 21:33:20 +0000 (+0100) Subject: further place enum adjustments X-Git-Tag: dnsdist-1.0.0-alpha1~252^2~6^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ea74c4d1a848e14c80f37fc1bfdb08b69a7682b;p=pdns further place enum adjustments --- diff --git a/pdns/filterpo.cc b/pdns/filterpo.cc index 164f4f7fc..8d078a8b0 100644 --- a/pdns/filterpo.cc +++ b/pdns/filterpo.cc @@ -80,7 +80,7 @@ DNSFilterEngine::Policy DNSFilterEngine::getPostPolicy(const vector& ComboAddress ca; for(const auto& r : records) { - if(r.d_place != DNSRecord::Answer) + if(r.d_place != DNSResourceRecord::Answer) continue; if(r.d_type == QType::A) ca = std::dynamic_pointer_cast(r.d_content)->getCA(); diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index b68ceb9a2..fa1919b5f 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -638,7 +638,7 @@ void startDoResolve(void *p) spoofed.d_ttl = 1234; spoofed.d_class = 1; spoofed.d_content = dfepol.d_custom; - spoofed.d_place = DNSRecord::Answer; + spoofed.d_place = DNSResourceRecord::Answer; ret.push_back(spoofed); goto haveAnswer; @@ -697,7 +697,7 @@ void startDoResolve(void *p) spoofed.d_ttl = 1234; spoofed.d_class = 1; spoofed.d_content = dfepol.d_custom; - spoofed.d_place = DNSRecord::Answer; + spoofed.d_place = DNSResourceRecord::Answer; ret.push_back(spoofed); goto haveAnswer; }