From: Mark Zealey Date: Fri, 17 Jan 2014 15:30:48 +0000 (+0200) Subject: 5-arg version of getAuth is only for backend modules not for UeberBackend. Should... X-Git-Tag: rec-3.6.0-rc1~235^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1217%2Fhead;p=thirdparty%2Fpdns.git 5-arg version of getAuth is only for backend modules not for UeberBackend. Should fix clang warning --- diff --git a/pdns/ueberbackend.hh b/pdns/ueberbackend.hh index b4ea73d811..f3c086c38f 100644 --- a/pdns/ueberbackend.hh +++ b/pdns/ueberbackend.hh @@ -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);