]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix incorrect optsize 13005/head
authorJelle Kaufmann <jelle@jellekaufmann.nl>
Sun, 9 Jul 2023 05:04:12 +0000 (07:04 +0200)
committerJelle Kaufmann <jelle@jellekaufmann.nl>
Sun, 9 Jul 2023 05:04:12 +0000 (07:04 +0200)
pdns/dnspacket.cc

index b9fcdfabe307fffeaa4a2e50796a16adc68aa095..a9ec83529bb659cb8a22e38b165deb628c371ce9 100644 (file)
@@ -333,7 +333,7 @@ void DNSPacket::wrapup(bool throwsOnTruncation)
 
   if (d_haveednscookie) {
     if (d_eco.isWellFormed()) {
-        optsize += EDNSCookiesOpt::EDNSCookieOptSize;
+        optsize += EDNS_OPTION_CODE_SIZE + EDNS_OPTION_LENGTH_SIZE + EDNSCookiesOpt::EDNSCookieOptSize;
     }
   }