Skip to content
Snippets Groups Projects
Commit 89245c0a authored by Mark Adler's avatar Mark Adler
Browse files

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

parent be5e3647
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment