From 4eb040fcbb1d3d8db97e30152d6ab1eb53cfe0ac Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 22 Nov 2024 10:17:34 +0100 Subject: [PATCH] Update pdns/recursordist/pdns_recursor.cc Co-authored-by: Remi Gacogne --- pdns/recursordist/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/recursordist/pdns_recursor.cc b/pdns/recursordist/pdns_recursor.cc index c2c5bd56ce..e2df373872 100644 --- a/pdns/recursordist/pdns_recursor.cc +++ b/pdns/recursordist/pdns_recursor.cc @@ -2036,7 +2036,7 @@ void getQNameAndSubnet(const std::string& question, DNSName* dnsname, uint16_t* const auto* drh = reinterpret_cast(&question.at(pos)); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast) if (ntohs(drh->d_type) == QType::OPT) { uint32_t edns{}; - memcpy(&edns, &drh->d_ttl, sizeof(edns)); // dh is not neccesarily aligned, so no uint32 assignment can be done + memcpy(&edns, &drh->d_ttl, sizeof(edns)); // drh is not neccesarily aligned, so no uint32 assignment can be done ednsVersion = edns; } pos += sizeof(dnsrecordheader); -- 2.47.2