]> granicus.if.org Git - pdns/commitdiff
read ALLOW-AXFR-FROM from the backend with the metadata
authorKees Monshouwer <mind04@monshouwer.org>
Sat, 1 Nov 2014 22:15:04 +0000 (23:15 +0100)
committermind04 <mind04@monshouwer.org>
Mon, 22 Dec 2014 19:26:42 +0000 (20:26 +0100)
pdns/tcpreceiver.cc

index 1594bb11107290ad2b87ed33a5ef44ee0c2e4039..302b22dbcb54452bab3c7b888bb5c512aa4b65b8 100644 (file)
@@ -428,7 +428,7 @@ bool TCPNameserver::canDoAXFR(shared_ptr<DNSPacket> q)
     // cerr<<"got backend and SOA"<<endl;
     DNSBackend *B=sd.db;
     vector<string> acl;
-    B->getDomainMetadata(q->qdomain, "ALLOW-AXFR-FROM", acl);
+    s_P->getBackend()->getDomainMetadata(q->qdomain, "ALLOW-AXFR-FROM", acl);
     for (vector<string>::const_iterator i = acl.begin(); i != acl.end(); ++i) {
       // cerr<<"matching against "<<*i<<endl;
       if(pdns_iequals(*i, "AUTO-NS")) {