diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2017-03-30 14:48:43 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2017-03-30 14:48:43 -0700 |
commit | 89245c0a84eac0c5cfc6f0eb2fe72854f4b2c9e6 (patch) | |
tree | 333f173ff6f35c70228b0b8c9eebf2d2d30b1aab | |
parent | be5e3647c4aca626dcfa833ae2455b7af21b60b3 (diff) | |
download | zlib-89245c0a84eac0c5cfc6f0eb2fe72854f4b2c9e6.tar.gz zlib-89245c0a84eac0c5cfc6f0eb2fe72854f4b2c9e6.tar.bz2 zlib-89245c0a84eac0c5cfc6f0eb2fe72854f4b2c9e6.zip |
Don't compute check value for raw inflate if asked to validate.
-rw-r--r-- | inflate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1531,7 +1531,7 @@ int check; | |||
1531 | 1531 | ||
1532 | if (inflateStateCheck(strm)) return Z_STREAM_ERROR; | 1532 | if (inflateStateCheck(strm)) return Z_STREAM_ERROR; |
1533 | state = (struct inflate_state FAR *)strm->state; | 1533 | state = (struct inflate_state FAR *)strm->state; |
1534 | if (check) | 1534 | if (check && state->wrap) |
1535 | state->wrap |= 4; | 1535 | state->wrap |= 4; |
1536 | else | 1536 | else |
1537 | state->wrap &= ~4; | 1537 | state->wrap &= ~4; |