From: Mark Zealey Date: Mon, 6 Jan 2014 15:46:00 +0000 (+0200) Subject: kill getAuth function that keeps reappearing X-Git-Tag: rec-3.6.0-rc1~245^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c261a4e77b1c39f2a95a571940512d3b309124b;p=pdns kill getAuth function that keeps reappearing --- diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index 7143a071b..a92c2294c 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -313,28 +313,6 @@ int PacketHandler::doChaosRequest(DNSPacket *p, DNSPacket *r, string &target) return 0; } -/** Determines if we are authoritative for a zone, and at what level */ -bool PacketHandler::getAuth(DNSPacket *p, SOAData *sd, const string &target, int *zoneId) -{ - bool found=false; - string subdomain(target); - do { - if( B.getSOA( subdomain, *sd, p ) ) { - sd->qname = subdomain; - if(zoneId) - *zoneId = sd->domain_id; - - if(p->qtype.getCode() == QType::DS && pdns_iequals(subdomain, target)) { - // Found authoritative zone but look for parent zone with 'DS' record. - found=true; - } else - return true; - } - } - while( chopOff( subdomain ) ); // 'www.powerdns.org' -> 'powerdns.org' -> 'org' -> '' - return found; -} - vector PacketHandler::getBestReferralNS(DNSPacket *p, SOAData& sd, const string &target) { vector ret;