From: Kees Monshouwer Date: Fri, 7 Jan 2022 23:29:38 +0000 (+0100) Subject: auth: lmdb, check if the lookup name is part of the zone X-Git-Tag: auth-4.5.3~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11158%2Fhead;p=thirdparty%2Fpdns.git auth: lmdb, check if the lookup name is part of the zone --- diff --git a/modules/lmdbbackend/lmdbbackend.cc b/modules/lmdbbackend/lmdbbackend.cc index 2b84cded11..7d39910988 100644 --- a/modules/lmdbbackend/lmdbbackend.cc +++ b/modules/lmdbbackend/lmdbbackend.cc @@ -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 "<