Skip to content

Commit dbaa3a4

Browse files
committed
fix: properly reject prioritized HEADERS with stream ID of zero
1 parent ce81583 commit dbaa3a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/frame/headers.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ impl Headers {
146146

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

149+
if head.stream_id().is_zero() {
150+
return Err(Error::InvalidStreamId);
151+
}
152+
149153
// Read the padding length
150154
if flags.is_padded() {
151155
if src.is_empty() {

0 commit comments

Comments
 (0)