summaryrefslogtreecommitdiffstats
path: root/htp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-24 02:00:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-24 02:00:01 +0000
commit8f5c72b15e9550b76fabc25fb85d91c748509964 (patch)
tree50bee0145656536bef5e7397bd07b45814e862bc /htp
parentAdding upstream version 1:0.5.47. (diff)
downloadlibhtp-8f5c72b15e9550b76fabc25fb85d91c748509964.tar.xz
libhtp-8f5c72b15e9550b76fabc25fb85d91c748509964.zip
Adding upstream version 1:0.5.48.upstream/1%0.5.48upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'htp')
-rw-r--r--htp/htp_decompressors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htp/htp_decompressors.c b/htp/htp_decompressors.c
index fe12833..02ebae3 100644
--- a/htp/htp_decompressors.c
+++ b/htp/htp_decompressors.c
@@ -317,7 +317,7 @@ restart:
return HTP_ERROR;
}
if (GZIP_BUF_SIZE > drec->stream.avail_out) {
- if (rc == Z_DATA_ERROR) {
+ if (rc == Z_DATA_ERROR && drec->restart == 0) {
// There is data even if there is an error
// So use this data and log a warning
htp_log(d->tx->connp, HTP_LOG_MARK, HTP_LOG_WARNING, 0, "GZip decompressor: inflate failed with %d", rc);