From: Otto Moerbeek Date: Fri, 22 Nov 2024 09:17:34 +0000 (+0100) Subject: Update pdns/recursordist/pdns_recursor.cc X-Git-Tag: rec-5.2.0-beta1~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14852%2Fhead;p=thirdparty%2Fpdns.git Update pdns/recursordist/pdns_recursor.cc Co-authored-by: Remi Gacogne --- 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);