Skip to content

Commit

Permalink
Update frame_header.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller authored Jan 5, 2024
1 parent 41e283b commit e78861a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/ext/transport/chaotic_good/frame_header.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ absl::StatusOr<FrameHeader> FrameHeader::Parse(const uint8_t* data) {
return absl::InvalidArgumentError(
absl::StrCat("Invalid message length: ", header.message_length));
}
if (header.flags.is_set(1) && header.message_padding <= 0) {
return absl::InvalidArgumentError(
absl::StrCat("Invalid message padding: ", header.message_padding));
}
header.trailer_length = ReadLittleEndianUint32(data + 20);
return header;
}
Expand Down

0 comments on commit e78861a

Please sign in to comment.