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

pull/124/merge
Mark Adler 8 years ago
parent be5e3647c4
commit 89245c0a84
  1. 2
      inflate.c

@ -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;

Loading…
Cancel
Save