From 8ca539e75a1b0cc8f43f7e2234357c857f9876bf Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 11 Dec 2020 16:37:49 +0100 Subject: [PATCH] rec: Copy the salt into the cache instead of taking a reference At the moment the salt does live longer than the cache, but that might hold true forever. --- pdns/validate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/validate.cc b/pdns/validate.cc index f97322a29f..9b70952284 100644 --- a/pdns/validate.cc +++ b/pdns/validate.cc @@ -80,7 +80,7 @@ static bool nsecProvesENT(const DNSName& name, const DNSName& begin, const DNSNa return begin.canonCompare(name) && next != name && next.isPartOf(name); } -using nsec3HashesCache = std::map, std::string>; +using nsec3HashesCache = std::map, std::string>; static std::string getHashFromNSEC3(const DNSName& qname, const std::shared_ptr& nsec3, nsec3HashesCache& cache) { -- 2.47.2