diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-24 02:00:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-24 02:00:01 +0000 |
commit | 8f5c72b15e9550b76fabc25fb85d91c748509964 (patch) | |
tree | 50bee0145656536bef5e7397bd07b45814e862bc /htp/htp_decompressors.c | |
parent | Adding upstream version 1:0.5.47. (diff) | |
download | libhtp-upstream.tar.xz libhtp-upstream.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/htp_decompressors.c')
-rw-r--r-- | htp/htp_decompressors.c | 2 |
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); |