]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: lmdb, check if the lookup name is part of the zone 11158/head
authorKees Monshouwer <mind04@monshouwer.org>
Fri, 7 Jan 2022 23:29:38 +0000 (00:29 +0100)
committermind04 <mind04@monshouwer.org>
Mon, 10 Jan 2022 11:44:44 +0000 (12:44 +0100)
modules/lmdbbackend/lmdbbackend.cc

index 2b84cded1108d06535e8c8fcc610b85904621d16..7d39910988725eca221595b4f8ff96a8805c17c6 100644 (file)
@@ -727,6 +727,9 @@ void LMDBBackend::lookup(const QType& type, const DNSName& qdomain, int zoneId,
   }
 
   DNSName relqname = qdomain.makeRelative(hunt);
+  if (relqname.empty()) {
+    return;
+  }
   // cout<<"get will look for "<<relqname<< " in zone "<<hunt<<" with id "<<zoneId<<" and type "<<type.toString()<<endl;
   d_rotxn = getRecordsROTransaction(zoneId, d_rwtxn);