]> granicus.if.org Git - pdns/commitdiff
oops - previous commit was uncompiled & thus broken
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jan 2011 09:29:42 +0000 (09:29 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jan 2011 09:29:42 +0000 (09:29 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1864 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/backends/bind/bindbackend2.cc

index 53b23c0d00ee40d3eaf851c74a38c74b6dd229dd..4bd0f4d59bfa4479a26ddba3c0bc49f5296816bf 100644 (file)
@@ -1049,7 +1049,7 @@ bool Bind2Backend::handle::get_normal(DNSResourceRecord &r)
   r.ttl=(d_iter)->ttl;
   r.priority=(d_iter)->priority;
 
-  if(!d_iter->auth && r.qtype != QType::A && r.qtype!=QType::AAAA && r.qtype != QType::NS)
+  if(!d_iter->auth && r.qtype.getCode() != QType::A && r.qtype.getCode()!=QType::AAAA && r.qtype.getCode() != QType::NS)
     cerr<<"Warning! Unauth response!"<<endl;
   r.auth = d_iter->auth;