Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 28, 2024
1 parent 3404f19 commit d1d2a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqo-transport/tests/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fn packet_without_frames() {
let (aead, hp) = initial_aead_and_hp(&client_dcid, Role::Server);
let (mut header, pn) = remove_header_protection(&hp, protected_header, payload);
assert_eq!(pn, 0);
// Re-encode the packet number as a four-byte varint, so we have enough material for the header
// Re-encode the packet number as four bytes, so we have enough material for the header
// protection sample.
let hl = header.len();
header[hl - 2] = u8::try_from(4 + aead.expansion()).unwrap();
Expand Down

0 comments on commit d1d2a8a

Please sign in to comment.