]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
5-arg version of getAuth is only for backend modules not for UeberBackend. Should... 1217/head
authorMark Zealey <mark@markandruth.co.uk>
Fri, 17 Jan 2014 15:30:48 +0000 (17:30 +0200)
committerMark Zealey <mark@markandruth.co.uk>
Fri, 17 Jan 2014 15:30:48 +0000 (17:30 +0200)
pdns/ueberbackend.hh

index b4ea73d8115c831ab2b261c3dd914477cb44ef04..f3c086c38f4b57c2025144fd2892c67a2eafbd43 100644 (file)
@@ -115,6 +115,11 @@ public:
 
   void lookup(const QType &, const string &qdomain, DNSPacket *pkt_p=0,  int zoneId=-1);
 
+  /* 5-arg version is only valid for backends and should never be called directly */
+  virtual bool getAuth(DNSPacket *p, SOAData *sd, const string &target, int *zoneId, const int best_match_len) {
+    throw PDNSException("5-arg version of getAuth should not be called in UeberBackend");
+  }
+
   bool getAuth(DNSPacket *p, SOAData *sd, const string &target, int *zoneId);
   bool getSOA(const string &domain, SOAData &sd, DNSPacket *p=0);
   bool list(const string &target, int domain_id);