Skip to content

Commit

Permalink
auth: scopeMask in the SOAData structure is unused after PowerDNS#5512
Browse files Browse the repository at this point in the history
  • Loading branch information
mind04 committed Oct 10, 2018
1 parent c6420f2 commit d29fbc0
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion modules/remotebackend/remotebackend.cc
Expand Up @@ -844,7 +844,6 @@ bool RemoteBackend::calculateSOASerial(const DNSName& domain, const SOAData& sd,
{ "expire", static_cast<int>(sd.expire) },
{ "default_ttl", static_cast<int>(sd.default_ttl) },
{ "domain_id", static_cast<int>(sd.domain_id) },
{ "scopeMask", sd.scopeMask }
}}
}}
};
Expand Down
3 changes: 1 addition & 2 deletions pdns/dns.hh
Expand Up @@ -37,7 +37,7 @@ struct DNSRecord;

struct SOAData
{
SOAData() : ttl(0), serial(0), refresh(0), retry(0), expire(0), default_ttl(0), db(0), domain_id(-1), scopeMask(0) {};
SOAData() : ttl(0), serial(0), refresh(0), retry(0), expire(0), default_ttl(0), db(0), domain_id(-1) {};

DNSName qname;
DNSName nameserver;
Expand All @@ -50,7 +50,6 @@ struct SOAData
uint32_t default_ttl;
DNSBackend *db;
int domain_id;
uint8_t scopeMask;
};

class RCode
Expand Down
1 change: 0 additions & 1 deletion pdns/dnsbackend.cc
Expand Up @@ -234,7 +234,6 @@ bool DNSBackend::getSOA(const DNSName &domain, SOAData &sd, bool unmodifiedSeria
fillSOAData(rr.content, sd);
sd.domain_id=rr.domain_id;
sd.ttl=rr.ttl;
sd.scopeMask = rr.scopeMask;
}

if(!hits)
Expand Down
1 change: 0 additions & 1 deletion pdns/packethandler.cc
Expand Up @@ -979,7 +979,6 @@ void PacketHandler::makeNXDomain(DNSPacket* p, DNSPacket* r, const DNSName& targ
rr.domain_id=sd.domain_id;
rr.dr.d_place=DNSResourceRecord::AUTHORITY;
rr.auth = 1;
rr.scopeMask = sd.scopeMask;
r->addRecord(rr);

if(d_dk.isSecuredZone(sd.qname))
Expand Down

0 comments on commit d29fbc0

Please sign in to comment.