From 70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 10 Dec 2011 22:27:24 -0800 Subject: [PATCH] Do not set strm->adler when doing raw inflate. --- inflate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inflate.c b/inflate.c index 1523598..92a4665 100644 --- a/inflate.c +++ b/inflate.c @@ -109,7 +109,8 @@ z_streamp strm; state = (struct inflate_state FAR *)strm->state; strm->total_in = strm->total_out = state->total = 0; strm->msg = Z_NULL; - strm->adler = 1; /* to support ill-conceived Java test suite */ + if (state->wrap) /* to support ill-conceived Java test suite */ + strm->adler = state->wrap & 1; state->mode = HEAD; state->last = 0; state->havedict = 0; -- 2.7.4