From: Kees Monshouwer Date: Mon, 13 May 2013 21:16:42 +0000 (+0200) Subject: add 'at apex' check for inserted DNSKEY records X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=968de8d0f73755c953479bea640b4990b01d3191;p=thirdparty%2Fpdns.git add 'at apex' check for inserted DNSKEY records --- diff --git a/pdns/rfc2136handler.cc b/pdns/rfc2136handler.cc index 11e2b50f56..9c1c4319c5 100644 --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@ -86,11 +86,11 @@ int PacketHandler::checkUpdatePrescan(const DNSRecord *rr) { // Implements section 3.4.2 of RFC2136 uint16_t PacketHandler::performUpdate(const string &msgPrefix, const DNSRecord *rr, DomainInfo *di, bool isPresigned, bool* narrow, bool* haveNSEC3, NSEC3PARAMRecordContent *ns3pr, bool *updatedSerial) { + string rrLabel = stripDot(rr->d_label); rrLabel = toLower(rrLabel); QType rrType = QType(rr->d_type); - if (rrType == QType::NSEC || rrType == QType::NSEC3) { L<zone) { - L<zone) { + L< rrset, recordsToDelete;