Skip to content

Commit

Permalink
do not enforce client-initiated only PathID with VecDeque capacity
Browse files Browse the repository at this point in the history
Otherwise, we may consider valid solutions as invalid.
  • Loading branch information
qdeconinck committed Mar 2, 2024
1 parent 714833a commit 47c07b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quiche/src/cid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ impl ConnectionIdentifiers {
/// When the max path ID change.
fn maybe_resize_pcids(&mut self) {
// Assumption: only client-initiated paths.
self.pcids.resize((1 + self.max_path_id() / 2) as usize);
self.pcids.resize((1 + self.max_path_id()) as usize);
}

/// Sets the maximum path ID we allow, and specify if we should advertise
Expand Down

0 comments on commit 47c07b5

Please sign in to comment.