Skip to content

Commit

Permalink
Fix incorrect optsize
Browse files Browse the repository at this point in the history
(cherry picked from commit ca250bd)
  • Loading branch information
jellekaufmann authored and Habbie committed Oct 6, 2023
1 parent 735a455 commit c87da5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnspacket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit c87da5a

Please sign in to comment.