Skip to content

Commit

Permalink
fixup: decompressors: use partial data only for first decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed Jan 13, 2025
1 parent 6de3936 commit d77dea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/htp/src/decompressors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ impl Write for InnerDecompressor {
}
_ => {
let written = self.try_finish(&mut writer);
if written {
if written && self.restarts == 0 {
// error, but some data has been written, stop here
return Err(e);
}
Expand Down

0 comments on commit d77dea9

Please sign in to comment.