]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
remove redundant check
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 28 Feb 2025 11:01:33 +0000 (12:01 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 28 Feb 2025 14:46:27 +0000 (15:46 +0100)
(cherry picked from commit bce1a016a0fe7c42a479987cbaf8e3e92e3c403b)

modules/lmdbbackend/lmdbbackend.cc

index 336cf03988c205d291374dc32b139b755736ac30..de949eddbeb67d16a2e14b4a1d81e7cbe8a9d9a0 100644 (file)
@@ -1405,10 +1405,7 @@ bool LMDBBackend::list(const DNSName& target, int /* id */, bool include_disable
   d_matchkey = co(di.id);
 
   MDBOutVal key, val;
-  auto a = d_getcursor->prefix(d_matchkey, key, val);
-  auto b0 = key.getNoStripHeader<StringView>();
-  auto b = b0.rfind(d_matchkey, 0);
-  if (a || b != 0) {
+  if (d_getcursor->prefix(d_matchkey, key, val)) {
     d_getcursor.reset();
   }