]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update pdns/recursordist/pdns_recursor.cc 14852/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 22 Nov 2024 09:17:34 +0000 (10:17 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 09:17:34 +0000 (10:17 +0100)
Co-authored-by: Remi Gacogne <github@coredump.fr>
pdns/recursordist/pdns_recursor.cc

index c2c5bd56ce739d49e81091d44b9b9b068e58f763..e2df373872230a0d137be6206d80c73e6496202f 100644 (file)
@@ -2036,7 +2036,7 @@ void getQNameAndSubnet(const std::string& question, DNSName* dnsname, uint16_t*
     const auto* drh = reinterpret_cast<const dnsrecordheader*>(&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);