]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth lmdb: fix typo from a testing attempt 9938/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 11 Jan 2021 15:40:04 +0000 (16:40 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 11 Jan 2021 15:40:04 +0000 (16:40 +0100)
modules/lmdbbackend/lmdbbackend.cc

index 9cf2a90d8d60087cc03a4a5070089e67a3a51294..ab3b68ba4a71fa6114765ef9ee6a074a649c4a89 100644 (file)
@@ -827,7 +827,7 @@ bool LMDBBackend::getDomainInfo(const DNSName &domain, DomainInfo &di, bool getS
         uint32_t serial;
         // a SOA has five 32 bit fields, the first of which is the serial
         // there are two variable length names before the serial, so we calculate from the back
-        memcpy(&serial, &rr.content[rr.content.size() - (4 * sizeof(uint32_t))], sizeof(serial));
+        memcpy(&serial, &rr.content[rr.content.size() - (5 * sizeof(uint32_t))], sizeof(serial));
         di.serial = ntohl(serial);
       }
     }