Don't compute check value for raw inflate if asked to validate.

This commit is contained in:
Mark Adler 2017-03-30 14:48:43 -07:00
parent be5e3647c4
commit 89245c0a84
1 changed files with 1 additions and 1 deletions

View File

@ -1531,7 +1531,7 @@ int check;
if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
state = (struct inflate_state FAR *)strm->state;
if (check)
if (check && state->wrap)
state->wrap |= 4;
else
state->wrap &= ~4;