Skip to content

Commit

Permalink
Merge pull request #13334 from Habbie/backport-13005-to-auth-4.7.x
Browse files Browse the repository at this point in the history
auth-4.7: Fix incorrect optsize
  • Loading branch information
Habbie authored Oct 6, 2023
2 parents 735a455 + c87da5a commit 0bbe4b9
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 0bbe4b9

Please sign in to comment.