]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
spelling: necessarily
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Wed, 19 Nov 2025 17:29:03 +0000 (12:29 -0500)
committerJosh Soref <2119212+jsoref@users.noreply.github.com>
Thu, 20 Nov 2025 12:31:10 +0000 (07:31 -0500)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
pdns/recursordist/pdns_recursor.cc
pdns/recursordist/test-syncres_cc2.cc

index 279bbb1693903f7c24ad53b4d76bfee0ba958b2c..eca86a4812002bc52c31f9096b35a7a2f04ebbbd 100644 (file)
@@ -2004,7 +2004,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)); // drh is not neccesarily aligned, so no uint32 assignment can be done
+      memcpy(&edns, &drh->d_ttl, sizeof(edns)); // drh is not necessarily aligned, so no uint32 assignment can be done
       ednsVersion = edns;
     }
     pos += sizeof(dnsrecordheader);
index b000ad938436665dc14c34f0ff0e4166d8dcfab7..750d3e80c6973e82b191a44b7321e55ff8e02b7a 100644 (file)
@@ -1454,7 +1454,7 @@ BOOST_AUTO_TEST_CASE(test_ns_speed)
   fd2.reset();
   BOOST_CHECK_EQUAL(records, count);
 
-  // NS speed table is a hashed unique table, which not neccesarily stable wrt recreation
+  // NS speed table is a hashed unique table, which not necessarily stable wrt recreation
   // So we read the lines, sort them and compare
   std::ifstream file1(temp1);
   std::ifstream file2(temp2);