From: Peter van Dijk Date: Tue, 2 May 2023 12:16:44 +0000 (+0200) Subject: move assignment outside of condition X-Git-Tag: auth-4.8.0-beta1~1^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a747fb49be395e9d70818d2ffc16b61796539af4;p=thirdparty%2Fpdns.git move assignment outside of condition --- diff --git a/modules/lmdbbackend/lmdbbackend.cc b/modules/lmdbbackend/lmdbbackend.cc index 219521978f..55f3d6baa1 100644 --- a/modules/lmdbbackend/lmdbbackend.cc +++ b/modules/lmdbbackend/lmdbbackend.cc @@ -1680,7 +1680,10 @@ void LMDBBackend::getAllDomainsFiltered(vector* domains, const std:: DomainInfo di; // this get grabs the oldest item if there are duplicates - if (!(di.id = txn.get<0>(zone, di))) { + di.id = txn.get<0>(zone, di); + + if (di.id == 0) { + // .get actually found nothing for us continue; }