From: Peter van Dijk Date: Mon, 11 Jan 2021 15:40:04 +0000 (+0100) Subject: auth lmdb: fix typo from a testing attempt X-Git-Tag: rec-4.5.0-alpha1~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9938%2Fhead;p=thirdparty%2Fpdns.git auth lmdb: fix typo from a testing attempt --- diff --git a/modules/lmdbbackend/lmdbbackend.cc b/modules/lmdbbackend/lmdbbackend.cc index 9cf2a90d8d..ab3b68ba4a 100644 --- a/modules/lmdbbackend/lmdbbackend.cc +++ b/modules/lmdbbackend/lmdbbackend.cc @@ -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); } }