]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Remove duplicate assignment.
authorMiod Vallat <miod.vallat@powerdns.com>
Mon, 30 Jun 2025 09:44:53 +0000 (11:44 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Mon, 30 Jun 2025 09:44:53 +0000 (11:44 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/lmdbbackend/lmdbbackend.cc

index bc8908f88f56c1fafb8c23338577ba8dae726688..b7146564638aeb302896706076fae27fc7f18e8a 100644 (file)
@@ -2323,6 +2323,8 @@ bool LMDBBackend::unpublishDomainKey(const ZoneName& name, unsigned int keyId)
   return true;
 }
 
+// Return true if the key points to an NSEC3 back chain record (ttl == 0).
+// Updates lrr if this is an NSEC3 record (regardless of its kind).
 bool LMDBBackend::isNSEC3BackRecord(LMDBResourceRecord& lrr, const MDBOutVal& key, const MDBOutVal& val)
 {
   if (compoundOrdername::getQType(key.getNoStripHeader<StringView>()) == QType::NSEC3) {
@@ -2399,7 +2401,6 @@ bool LMDBBackend::getBeforeAndAfterNamesAbsolute(domainid_t id, const DNSName& q
   before = co.getQName(key.getNoStripHeader<StringView>());
   if (before == qname) {
     // cout << "Ended up on exact right node" << endl;
-    before = co.getQName(key.getNoStripHeader<StringView>());
     // unhashed should be correct now, maybe check?
     if (cursor.next(key, val)) {
       // xxx should find first hash now