From d49406608a9d35144bd01de18f78989c3739d155 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 11 Jan 2021 16:40:04 +0100 Subject: [PATCH] auth lmdb: fix typo from a testing attempt --- modules/lmdbbackend/lmdbbackend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.47.2