From: Miod Vallat Date: Mon, 30 Jun 2025 10:53:08 +0000 (+0200) Subject: Rewrite the now-deobfuscated logic into two getAfterForward calls. X-Git-Tag: rec-5.3.0-alpha2~29^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af47abb3e1b5c8db9b87f85171b4182599f5fb1d;p=thirdparty%2Fpdns.git Rewrite the now-deobfuscated logic into two getAfterForward calls. Signed-off-by: Miod Vallat --- diff --git a/modules/lmdbbackend/lmdbbackend.cc b/modules/lmdbbackend/lmdbbackend.cc index 3cd273eaa3..baade7b953 100644 --- a/modules/lmdbbackend/lmdbbackend.cc +++ b/modules/lmdbbackend/lmdbbackend.cc @@ -2339,15 +2339,11 @@ bool LMDBBackend::isNSEC3BackRecord(LMDBResourceRecord& lrr, const MDBOutVal& ke // Search for the next NSEC3 back record and return its qname as `after'. // Returns true if found, false if not (either end of database records, or // different domain). +// NOLINTNEXTLINE(readability-identifier-length) bool LMDBBackend::getAfterForward(MDBROCursor& cursor, MDBOutVal& key, MDBOutVal& val, domainid_t id, DNSName& after) { - compoundOrdername co; // NOLINT(readability-identifier-length) LMDBResourceRecord lrr; - if (cursor.lower_bound(co(id), key, val) != 0) { - // cout<<"hit end of zone find when we shouldn't"<()) != id) { // cout<<"hit end of zone or database when we shouldn't"<()) <()) != id) { - // cout <<"Hit end of database or zone, finding first hash then in zone "<()) <()); - // cout<<"returning: before="<