]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Make sure local variable is always initialized.
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 18 Mar 2026 14:47:10 +0000 (15:47 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 18 Mar 2026 14:47:10 +0000 (15:47 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/lmdbbackend/lmdbbackend.cc

index a43105427099cea85a4670dbd5109482aac55bb2..df33a2bcc49cddcdf61703a6706e7db6aeac8ef8 100644 (file)
@@ -1569,6 +1569,10 @@ bool LMDBBackend::replaceRRSet(domainid_t domain_id, const DNSName& qname, const
   else {
     if (qt.getCode() == QType::NSEC3) {
       deleteNSEC3RecordPair(txn, domain_id, relative);
+      // Compute key if insertions are to follow
+      if (!rrset.empty()) {
+        match = co(domain_id, relative, qt.getCode());
+      }
     }
     else {
       auto cursor = txn->txn->getCursor(txn->db->dbi);