diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2017-03-30 14:48:43 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2019-01-15 10:50:50 +0100 |
commit | 527e59f8167ec6eea0923025be241aec923e7cfb (patch) | |
tree | 28e776a37a8ef2c9ff8a4eaba78d63caa486c7d2 /inflate.c | |
parent | 06bd4c8b105fc97cf4998d2ac22acbbc41df951a (diff) |
Don't compute check value for raw inflate if asked to validate.
Diffstat (limited to 'inflate.c')
-rw-r--r-- | inflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1503,7 +1503,7 @@ int ZEXPORT PREFIX(inflateValidate)(PREFIX3(stream) *strm, int check) { if (inflateStateCheck(strm)) return Z_STREAM_ERROR; state = (struct inflate_state *)strm->state; - if (check) + if (check && state->wrap) state->wrap |= 4; else state->wrap &= ~4; |