Skip to content

Commit

Permalink
fix: properly reject prioritized HEADERS with stream ID of zero
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Nov 23, 2021
1 parent ce81583 commit dbaa3a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/frame/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ impl Headers {

tracing::trace!("loading headers; flags={:?}", flags);

if head.stream_id().is_zero() {
return Err(Error::InvalidStreamId);
}

// Read the padding length
if flags.is_padded() {
if src.is_empty() {
Expand Down

0 comments on commit dbaa3a4

Please sign in to comment.